Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

S3C-7403 Scality registry is not compatible with new buildx defaults,… #8

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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