Skip to content

Commit

Permalink
Merge pull request #8 from scality/bugfix/S3C-7403/use-provenance-fal…
Browse files Browse the repository at this point in the history
…se-for-registry-scality

S3C-7403 Scality registry is not compatible with new buildx defaults,…
  • Loading branch information
Emylou-s authored Jan 25, 2023
2 parents 8fa761f + da29054 commit 97f0dd5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/docker-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ on:
required: false
type: boolean
default: false
provenance:
required: false
type: boolean
default: false
secrets:
REGISTRY_LOGIN:
required: false
Expand All @@ -61,7 +65,7 @@ jobs:
lfs: ${{ inputs.lfs }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Login to ${{ inputs.registry }}
uses: docker/login-action@v1
Expand All @@ -71,9 +75,10 @@ jobs:
password: ${{ env.REGISTRY_PASSWORD }}

- name: Build and push ${{ inputs.name }} image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: ${{ inputs.context }}
provenance: ${{ inputs.provenance }}
push: ${{ inputs.push }}
tags: ${{ inputs.registry }}/${{ inputs.namespace }}/${{ inputs.name }}:${{ inputs.tag }}
cache-from: type=gha,scope=${{ inputs.name }}
Expand Down

0 comments on commit 97f0dd5

Please sign in to comment.