From 0bef1acac596591d9e0ac18c4d636ed5035cf638 Mon Sep 17 00:00:00 2001 From: Felipe Cavalcanti Date: Thu, 8 Feb 2024 14:57:14 -0300 Subject: [PATCH] Update docker build action and add arm64 --- .github/workflows/docker-image.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index b24b83e..c20f133 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -12,11 +12,21 @@ jobs: with: go-version: '1.17' - name: Check out the repo - uses: actions/checkout@v2 - - name: Push to Docker Hub - uses: docker/build-push-action@v1 + uses: actions/checkout@v4 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Login to Docker Hub + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - repository: tfgco/eventsgateway - tag_with_ref: true + - name: Push to Docker Hub + uses: docker/build-push-action@v5 + with: + push: true + tags: | + tfgco/eventsgateway:latest + tfgco/eventsgateway:${{ steps.vars.outputs.tag }} + platforms: linux/amd64,linux/arm64