Skip to content
Closed
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
14 changes: 7 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,22 +158,22 @@ jobs:

- name: Build - Set up QEMU
if: ${{ inputs.build }}
uses: docker/setup-qemu-action@v3
uses: docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a
with:
## Temporary due to bug in qemu: https://github.com/docker/setup-qemu-action/issues/198
image: tonistiigi/binfmt:qemu-v7.0.0-28

- name: Build - Set up Docker Buildx
if: ${{ inputs.build }}
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd
with:
# This required by local registry
driver-opts: network=host

- name: Build - Build the base image
# Don't need to build the base image when publish
if: ${{ inputs.build && !inputs.publish }}
uses: docker/build-push-action@v3
uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f
with:
context: ${{ env.BASE_IMAGE_PATH }}
tags: ${{ env.BASE_IMAGE_URL }}
Expand All @@ -196,7 +196,7 @@ jobs:

- name: Build - Build and push test image
if: ${{ inputs.build }}
uses: docker/build-push-action@v3
uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f
with:
context: ${{ env.IMAGE_PATH }}
tags: ${{ env.IMAGE_URL }}
Expand Down Expand Up @@ -329,22 +329,22 @@ jobs:

- name: Publish - Login to GitHub Container Registry
if: ${{ inputs.publish }}
uses: docker/login-action@v2
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Publish - Login to Dockerhub Registry
if: ${{ inputs.publish }}
uses: docker/login-action@v2
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Publish - Push Image
if: ${{ inputs.publish }}
uses: docker/build-push-action@v3
uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f
with:
context: ${{ env.IMAGE_PATH }}
push: true
Expand Down