Skip to content

Commit

Permalink
no options for qemu/buildx, qemu before buildx
Browse files Browse the repository at this point in the history
  • Loading branch information
mauwii committed Sep 28, 2023
1 parent 297eb4d commit 8ee7707
Showing 1 changed file with 19 additions and 20 deletions.
39 changes: 19 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,44 +79,43 @@ jobs:
# kics-scan ignore-line
uses: actions/[email protected]

- name: Setup Docker Buildx
# kics-scan ignore-line
uses: docker/[email protected]
with:
install: true
driver-opts: |
image=moby/buildkit:latest
# driver: ${{ github.event_name == 'pull_request' && 'docker' || 'docker-container' }}

- name: Setup QEMU
# kics-scan ignore-line
uses: docker/[email protected]
with:
image: 'tonistiigi/binfmt:buildkit-latest'
# with:
# image: 'tonistiigi/binfmt:buildkit-latest'

- name: Setup Docker Buildx
# kics-scan ignore-line
uses: docker/[email protected]
# with:
# driver-opts: |
# image=moby/buildkit:latest
# # driver: ${{ github.event_name == 'pull_request' && 'docker' || 'docker-container' }}

# Login against a container registry
# https://github.com/docker/login-action
- name: Login to ${{ env.REGISTRY }}
# kics-scan ignore-line
uses: docker/[email protected]
# kics-scan ignore-line
- uses: docker/[email protected]
name: Login to ${{ env.REGISTRY }}
with:
registry: ${{ env.REGISTRY }}
username: ${{ env.REGISTRY_USER }}
password: ${{ env.REGISTRY == 'docker.io' && secrets.DOCKERHUB_TOKEN || secrets.GITHUB_TOKEN }}
logout: true

# Free up space on the runner since the image is huge
- name: Free up disk space
# kics-scan ignore-line
uses: ./.github/actions/free-space
# kics-scan ignore-line
- uses: ./.github/actions/free-space
name: Free up disk space
with:
deleteDotnet: 'true'
deleteAndroid: 'true'

# Bake the image
- name: Build and Push
# kics-scan ignore-line
uses: docker/[email protected]
# kics-scan ignore-line
- uses: docker/[email protected]
name: Build and Push
id: bake
with:
files: docker-bake.hcl
Expand Down

0 comments on commit 8ee7707

Please sign in to comment.