Skip to content

Commit

Permalink
Merge pull request #22 from scality/improvement/RELENG-7322-addGitCom…
Browse files Browse the repository at this point in the history
…mitLabelToDockerBuild

impr: RELENG-7322 docker-build: add label 'git.commit'
  • Loading branch information
jonathan-gramain authored Mar 24, 2023
2 parents 47545af + 2dc7b89 commit b7b62c5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/docker-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ on:
required: false
type: string
default: "${{ github.sha }}"
labels:
required: false
type: string
default: |
git.repository=${{ github.repository }}
git.commit-sha=${{ github.sha }}
registry:
required: false
type: string
Expand Down Expand Up @@ -81,6 +87,7 @@ jobs:
provenance: ${{ inputs.provenance }}
push: ${{ inputs.push }}
tags: ${{ inputs.registry }}/${{ inputs.namespace }}/${{ inputs.name }}:${{ inputs.tag }}
labels: ${{ inputs.labels }}
cache-from: type=gha,scope=${{ inputs.name }}
cache-to: type=gha,mode=max,scope=${{ inputs.name }}
no-cache: ${{ inputs.no-cache }}
Expand Down

0 comments on commit b7b62c5

Please sign in to comment.