Skip to content

Commit

Permalink
Publish both amd64 and arm64 platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
MineGame159 committed Jul 22, 2023
1 parent 9b3d31e commit b74ffc9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,19 @@ jobs:
steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ secrets.DOCKER_USER }}/${{ secrets.DOCKER_REPO }}:latest,${{ secrets.DOCKER_USER }}/${{ secrets.DOCKER_REPO }}:${{ github.sha }}

0 comments on commit b74ffc9

Please sign in to comment.