Skip to content

Commit ffec5a5

Browse files
authored
ci: add commit hash to container image labels (#90)
1 parent 1845201 commit ffec5a5

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,8 @@ jobs:
543543
BUILD_MODE=release
544544
platforms: linux/${{ matrix.arch }}
545545
push: true
546+
labels: |
547+
org.opencontainers.image.revision=${{ github.sha }}
546548
tags: ${{ steps.registry.outputs.image_registry }}/${{ matrix.image }}:${{ github.sha }}
547549
cache-from: |
548550
type=gha,scope=refs/heads/main-${{ matrix.image }}-${{ matrix.arch }}

.github/workflows/publish.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ jobs:
138138
AMBER_BUILD_VERSION=${{ matrix.resolved_version }}
139139
platforms: linux/${{ matrix.arch }}
140140
push: true
141+
labels: |
142+
org.opencontainers.image.revision=${{ github.sha }}
141143
tags: |
142144
${{ steps.registry.outputs.image_registry }}/${{ matrix.image }}:main-${{ matrix.arch }}
143145
${{ steps.registry.outputs.image_registry }}/${{ matrix.image }}:${{ github.sha }}-${{ matrix.arch }}

0 commit comments

Comments
 (0)