Skip to content

Commit

Permalink
docker: build multiarch
Browse files Browse the repository at this point in the history
  • Loading branch information
aviau committed May 9, 2023
1 parent 99f1653 commit 18e16a6
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,23 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Docker meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v4
id: meta
with:
images: flared/docker
- uses: docker/login-action@v1
- uses: docker/login-action@v2
if: github.event_name != 'pull_request'
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
platforms: "linux/arm64,linux/amd64"
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 18e16a6

Please sign in to comment.