Skip to content

Commit b7b62c5

Browse files
Merge pull request #22 from scality/improvement/RELENG-7322-addGitCommitLabelToDockerBuild
impr: RELENG-7322 docker-build: add label 'git.commit'
2 parents 47545af + 2dc7b89 commit b7b62c5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/docker-build.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ on:
1515
required: false
1616
type: string
1717
default: "${{ github.sha }}"
18+
labels:
19+
required: false
20+
type: string
21+
default: |
22+
git.repository=${{ github.repository }}
23+
git.commit-sha=${{ github.sha }}
1824
registry:
1925
required: false
2026
type: string
@@ -81,6 +87,7 @@ jobs:
8187
provenance: ${{ inputs.provenance }}
8288
push: ${{ inputs.push }}
8389
tags: ${{ inputs.registry }}/${{ inputs.namespace }}/${{ inputs.name }}:${{ inputs.tag }}
90+
labels: ${{ inputs.labels }}
8491
cache-from: type=gha,scope=${{ inputs.name }}
8592
cache-to: type=gha,mode=max,scope=${{ inputs.name }}
8693
no-cache: ${{ inputs.no-cache }}

0 commit comments

Comments
 (0)