From b81a9383dbae069aa55ff0a9698505da01bf8b1f Mon Sep 17 00:00:00 2001 From: KingPin Date: Tue, 9 Jan 2024 11:40:59 -0500 Subject: [PATCH] GHA build arm64 builds --- .github/workflows/docker-publish.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 204ef83..880706a 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -9,9 +9,17 @@ on: jobs: docker: runs-on: ubuntu-latest + permissions: + contents: write + packages: write + security-events: write + steps: - - name: Checkout - uses: actions/checkout@v4 + - name: Docker Setup QEMU + uses: docker/setup-qemu-action@v3 + id: qemu + with: + platforms: amd64,arm64 - name: Docker meta id: meta uses: docker/metadata-action@v5 @@ -25,10 +33,14 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 - name: Build and push uses: docker/build-push-action@v5 with: - context: . + # context: . + file: ./Dockerfile + platforms: linux/amd64,linux/arm64 push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}