Skip to content

Commit 00e5ac0

Browse files
authored
Fix docker workflow command labels (#3688)
1 parent 10bbc7b commit 00e5ac0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/docker-publish.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
echo "Version '$VERSION' is a valid SemVer version"
3333
fi
3434
- name: checkout
35+
id: checkout
3536
uses: actions/checkout@v4
3637
with:
3738
ref: refs/tags/v${{ github.event.inputs.version }}
@@ -59,6 +60,9 @@ jobs:
5960
type=semver,pattern={{major}}.{{minor}},value=v${{ github.event.inputs.version }}
6061
type=semver,pattern={{major}}.{{minor}}.{{patch}},value=v${{ github.event.inputs.version }}
6162
type=semver,pattern={{version}},value=v${{ github.event.inputs.version }}
63+
labels: |
64+
org.opencontainers.image.revision=${{ steps.checkout.outputs.commit }}
65+
org.opencontainers.image.version=${{ github.event.inputs.version }}
6266
flavor: |
6367
latest=false
6468
- name: docker-build

0 commit comments

Comments
 (0)