-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
no options for qemu/buildx, qemu before buildx
- Loading branch information
Showing
1 changed file
with
19 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|