Skip to content

Commit

Permalink
Remove untagged docker versions
Browse files Browse the repository at this point in the history
  • Loading branch information
liuchengxu committed Jul 13, 2024
1 parent 075886a commit 3e73265
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
- 'release/**'
tags:
- '**'
pull_request:
branches:
- main

jobs:
container-linux:
Expand Down Expand Up @@ -60,8 +63,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 +81,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 3e73265

Please sign in to comment.