Skip to content

Commit c56a534

Browse files
authored
Fix docker image push (#1571)
1 parent 1ab7114 commit c56a534

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/publish_docker.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,14 @@ jobs:
3232
- uses: actions/checkout@v4
3333
- uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 #v3.6.0
3434
- uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 #v3.10.0
35+
- uses: actions/setup-go@v5
36+
with:
37+
go-version-file: "go.mod"
3538
- name: Build and publish images to DockerHub
3639
env:
3740
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
3841
DOCKER_PASS: ${{ secrets.DOCKER_PASS }}
42+
IMAGE_NAME: "avaplatform/subnet-evm_avalanchego"
3943
VM_ID: ${{ inputs.vm_id }}
4044
PUBLISH: 1
4145
PLATFORMS: "linux/amd64,linux/arm64"

scripts/build_docker_image.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ if [[ -n "${PLATFORMS}" ]]; then
5050
DOCKER_CMD="${DOCKER_CMD} --platform=${PLATFORMS}"
5151
if [[ "$PLATFORMS" == *,* ]]; then ## Multi-arch
5252
if [[ "${IMAGE_NAME}" != *"/"* ]]; then
53-
echo "ERROR: Multi-arch images must be pushed to a registry."
53+
echo "ERROR: Multi-arch images (multi-platform) must be pushed to a registry."
5454
exit 1
5555
fi
5656
ispush=1

0 commit comments

Comments
 (0)