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 }}