From 60d3ed5fac40095d9341532d88deb05b882a6dab Mon Sep 17 00:00:00 2001 From: aceforeverd Date: Thu, 12 Sep 2024 04:06:29 +0000 Subject: [PATCH] ci: fix docker image building on arm --- .github/workflows/hybridsql-docker.yml | 2 +- docker/patch_yum_repo.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/hybridsql-docker.yml b/.github/workflows/hybridsql-docker.yml index 02d52355f4e..a23786743f6 100644 --- a/.github/workflows/hybridsql-docker.yml +++ b/.github/workflows/hybridsql-docker.yml @@ -93,6 +93,6 @@ jobs: with: context: docker push: ${{ github.event_name == 'push' }} - platforms: linux/amd64 + platforms: linux/amd64,linux/arm64 tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} diff --git a/docker/patch_yum_repo.sh b/docker/patch_yum_repo.sh index b771ec2ed53..7852c3ac26a 100755 --- a/docker/patch_yum_repo.sh +++ b/docker/patch_yum_repo.sh @@ -6,6 +6,6 @@ sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo -if [[ "$ARCH" = "aarch64" ]]; then +if [[ "$(arch)" = "aarch64" ]]; then sed -i s/vault.centos.org\\/centos/vault.centos.org\\/altarch/g /etc/yum.repos.d/*.repo fi