-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from yfukai/ci
Ci
- Loading branch information
Showing
2 changed files
with
14 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Docker | ||
name: Docker delete tags | ||
|
||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
|
@@ -53,80 +53,34 @@ jobs: | |
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# Extract metadata (tags, labels) for Docker | ||
# https://github.com/docker/metadata-action | ||
- name: Extract Docker metadata (JAX conda CPU) | ||
id: meta_jax_conda | ||
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 | ||
with: | ||
images: ${{ env.REGISTRY }}/${{ env.JAX_CONDA_IMAGE_NAME }} | ||
tags: | | ||
type=schedule | ||
type=ref,event=branch | ||
type=ref,event=tag | ||
type=ref,event=pr | ||
- name: Extract Docker metadata (JAX conda GPU) | ||
id: meta_jax_conda_cuda | ||
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 | ||
with: | ||
images: ${{ env.REGISTRY }}/${{ env.JAX_CONDA_IMAGE_NAME }} | ||
tags: | | ||
type=schedule,suffix=-cuda | ||
type=ref,event=branch,suffix=-cuda | ||
type=ref,event=tag,suffix=-cuda | ||
type=ref,event=pr,suffix=-cuda | ||
- name: Extract Docker metadata (CPU) | ||
id: meta | ||
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 | ||
with: | ||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | ||
tags: | | ||
type=schedule | ||
type=ref,event=branch | ||
type=ref,event=tag | ||
type=ref,event=pr | ||
- name: Extract Docker metadata (GPU) | ||
id: meta_cuda | ||
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 | ||
with: | ||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | ||
tags: | | ||
type=schedule,suffix=-cuda | ||
type=ref,event=branch,suffix=-cuda | ||
type=ref,event=tag,suffix=-cuda | ||
type=ref,event=pr,suffix=-cuda | ||
- name: Delete image (JAX conda CPU) | ||
uses: bots-house/[email protected] | ||
with: | ||
owner: yfukai | ||
name: ${{ env.JAX_CONDA_IMAGE_NAME }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
tag: ${{ steps.meta_jax_conda.outputs.tags }} | ||
tag: pr-${{github.event.pull_request.number }} | ||
|
||
- name: Delete image (JAX conda GPU) | ||
uses: bots-house/[email protected] | ||
with: | ||
owner: yfukai | ||
name: ${{ env.JAX_CONDA_IMAGE_NAME }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
tag: ${{ steps.meta_jax_conda_cuda.outputs.tags }} | ||
tag: pr-${{github.event.pull_request.number }}-cuda | ||
|
||
- name: Delete image (JAX conda CPU) | ||
uses: bots-house/[email protected] | ||
with: | ||
owner: yfukai | ||
name: ${{ env.IMAGE_NAME }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
tag: ${{ steps.meta.outputs.tags }} | ||
tag: pr-${{github.event.pull_request.number }} | ||
|
||
- name: Delete image (JAX conda GPU) | ||
uses: bots-house/[email protected] | ||
with: | ||
owner: yfukai | ||
name: ${{ env.IMAGE_NAME }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
tag: ${{ steps.meta_cuda.outputs.tags }} | ||
tag: pr-${{github.event.pull_request.number }}-cuda |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters