Skip to content

Commit

Permalink
Update workflow to push both platforms under same tag
Browse files Browse the repository at this point in the history
  • Loading branch information
danidrasovean committed Mar 11, 2025
1 parent 48cfcd3 commit 88b194e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/deploy-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@ on:
release:
types: [published]
pull_request:
workflow_dispatch:

jobs:
build-docker-image:
runs-on: [ubuntu-22.04]
strategy:
matrix:
platform: [linux/amd64, linux/arm64]
runs-on: ubuntu-22.04

steps:
- name: Check out code into the Go module directory
Expand All @@ -26,9 +24,7 @@ jobs:
with:
images: ${{ env.REGISTRY_HOSTNAME }}/${{ env.IMAGE_NODE }}

# TODO: remove this when https://github.com/actions/runner-images/issues/11471 is fully resolved
- name: Set up QEMU for ARM64
if: matrix.platform == 'linux/arm64'
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
Expand All @@ -47,7 +43,7 @@ jobs:
with:
context: .
file: ./docker/Dockerfile
platforms: ${{ matrix.platform }}
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.20.7 as builder
FROM golang:1.20.7 AS builder
LABEL maintainer="multiversx"

WORKDIR /mx-chain-proxy-go
Expand Down

0 comments on commit 88b194e

Please sign in to comment.