Skip to content

Commit 08ee50a

Browse files
committed
fix: adding default container labels to multi arch build
1 parent d645a7b commit 08ee50a

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/build-multiarch.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,12 @@ jobs:
136136
platforms: linux/amd64
137137
push: true
138138
tags: ${{ inputs.image }}:${{ inputs.version }}-amd64
139+
labels: |
140+
org.opencontainers.image.created=${{ steps.meta.outputs.build_timestamp }}
141+
org.opencontainers.image.revision=${{ github.sha }}
142+
org.opencontainers.image.version=${{ inputs.version }}
143+
org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }}
144+
org.opencontainers.image.ref.name=${{ steps.meta.outputs.git_branch }}
139145
build-args: |
140146
COMMIT_HASH=${{ steps.meta.outputs.commit_hash }}
141147
GIT_BRANCH=${{ steps.meta.outputs.git_branch }}
@@ -186,6 +192,12 @@ jobs:
186192
platforms: linux/arm64
187193
push: true
188194
tags: ${{ inputs.image }}:${{ inputs.version }}-arm64
195+
labels: |
196+
org.opencontainers.image.created=${{ steps.meta.outputs.build_timestamp }}
197+
org.opencontainers.image.revision=${{ github.sha }}
198+
org.opencontainers.image.version=${{ inputs.version }}
199+
org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }}
200+
org.opencontainers.image.ref.name=${{ steps.meta.outputs.git_branch }}
189201
build-args: |
190202
COMMIT_HASH=${{ steps.meta.outputs.commit_hash }}
191203
GIT_BRANCH=${{ steps.meta.outputs.git_branch }}
@@ -239,6 +251,12 @@ jobs:
239251
platforms: linux/arm/v7
240252
push: true
241253
tags: ${{ inputs.image }}:${{ inputs.version }}-armv7
254+
labels: |
255+
org.opencontainers.image.created=${{ steps.meta.outputs.build_timestamp }}
256+
org.opencontainers.image.revision=${{ github.sha }}
257+
org.opencontainers.image.version=${{ inputs.version }}
258+
org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }}
259+
org.opencontainers.image.ref.name=${{ steps.meta.outputs.git_branch }}
242260
build-args: |
243261
COMMIT_HASH=${{ steps.meta.outputs.commit_hash }}
244262
GIT_BRANCH=${{ steps.meta.outputs.git_branch }}

0 commit comments

Comments
 (0)