ci: mock HOST_ARCH for image tagging and push during deployment

We want to apply the versioned tag.
This commit is contained in:
Matthew McCormick
2025-05-21 17:49:04 -04:00
parent 9668cbac87
commit a10699233d
2 changed files with 5 additions and 3 deletions

View File

@ -1550,9 +1550,11 @@ jobs:
docker images
make ${{ matrix.image_name }}.tag-amd64
make ${{ matrix.image_name }}.tag-arm64
make ${{ matrix.image_name }}.push-amd64
export HOST_ARCH=arm64
make ${{ matrix.image_name }}.tag-arm64
make ${{ matrix.image_name }}.push-arm64
unset HOST_ARCH
make ${{ matrix.image_name }}.push

View File

@ -30,7 +30,7 @@ TAG_FLAG := $(or $(TAG_FLAG), --tag)
ORG = dockcross
# Host architecture
HOST_ARCH := $(shell uname -m | sed -e 's/x86_64/amd64/' -e 's/aarch64/arm64/')
HOST_ARCH := $(or $(HOST_ARCH), shell uname -m | sed -e 's/x86_64/amd64/' -e 's/aarch64/arm64/')
# Directory where to generate the dockcross script for each images (e.g bin/dockcross-manylinux2014-x64)
BIN = ./bin