Skip to content

Commit

Permalink
Remove untagged docker versions (paritytech#20)
Browse files Browse the repository at this point in the history
* Remove untagged docker versions

* Do not run docker on PR
  • Loading branch information
liuchengxu authored Jul 13, 2024
1 parent 075886a commit 07c00eb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ jobs:
images: |
ghcr.io/subcoin-project/subcoin
tags: |
type=ref,event=tag
type=ref,event=branch
type=ref,event=tag
type=sha
flavor: |
latest=false
suffix=${{ matrix.platform.image-suffix }}
Expand All @@ -77,6 +78,9 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
# Added to prevent tons of untagged images in GHCR.
# See: https://github.com/docker/build-push-action/issues/894
provenance: false
build-args: |
SUBSTRATE_CLI_GIT_COMMIT_HASH=${{ github.sha }}
PROFILE=${{ matrix.platform.profile }}
Expand Down

0 comments on commit 07c00eb

Please sign in to comment.