Skip to content

Commit 60d3ed5

Browse files
committed
ci: fix docker image building on arm
1 parent 5c67e59 commit 60d3ed5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/hybridsql-docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,6 @@ jobs:
9393
with:
9494
context: docker
9595
push: ${{ github.event_name == 'push' }}
96-
platforms: linux/amd64
96+
platforms: linux/amd64,linux/arm64
9797
tags: ${{ steps.meta.outputs.tags }}
9898
labels: ${{ steps.meta.outputs.labels }}

docker/patch_yum_repo.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo
66
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo
77
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo
88

9-
if [[ "$ARCH" = "aarch64" ]]; then
9+
if [[ "$(arch)" = "aarch64" ]]; then
1010
sed -i s/vault.centos.org\\/centos/vault.centos.org\\/altarch/g /etc/yum.repos.d/*.repo
1111
fi

0 commit comments

Comments
 (0)