Skip to content

Workflow file for this run

name: Docker Build
on:
push
jobs:
build:
runs-on: macos-latest
permissions:
contents: write
strategy:
fail-fast: false
matrix:
platform:
# - linux/amd64
- linux/arm64
steps:
- name: Prepare
run: |
platform=${{ matrix.platform }}
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
- name: Check out code
uses: actions/checkout@v3
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v3
-
name: Set up Docker
uses: crazy-max/ghaction-setup-docker@v3
- name: Login to DockerHub
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Build
id: build
uses: docker/build-push-action@v5
with:
context: .
platforms: ${{ matrix.platform }}
labels: ${{ steps.meta.outputs.labels }}
outputs: type=image,name=${{ env.REGISTRY_IMAGE }},name-canonical=true,push=false