Skip to content

Commit

Permalink
feat(docker): build multi-arch images (#828)
Browse files Browse the repository at this point in the history
close #772
  • Loading branch information
garrygerber authored and tchiotludo committed Oct 24, 2021
1 parent 9dc047d commit 6e5d7d6
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,15 +147,32 @@ jobs:
asset_name: akhq.zip
asset_content_type: application/zip

-
name: Set up QEMU
uses: docker/setup-qemu-action@v1

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

-
name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Set Tag Variable
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}

# Docker
- name: Publish to Docker Hub
uses: elgohr/Publish-Docker-Github-Action@master
uses: docker/build-push-action@v2
if: github.ref == 'refs/heads/dev' || startsWith(github.ref, 'refs/tags/')
with:
name: tchiotludo/akhq
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
tag_names: true
push: true
tags: tchiotludo/akhq:${{ steps.vars.outputs.tag }}

# Slack
- name: Slack notification
Expand Down

0 comments on commit 6e5d7d6

Please sign in to comment.