Skip to content

Commit 0e5e4f2

Browse files
Enable linux/arm64 multi-arch alpine publish via buildx
Pin the 4 docker-publish workflows to citusdata/tools v0.8.38 (buildx engine with multi-arch support) and wire QEMU + Buildx setup. Gate arm64 via DOCKER_BUILD_MULTI_ARCH: master-gated on push/cron, always on for manual/tag publish paths. Revert arm64-alpine-smoke.yml to dispatch-only. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 52d4e780-cd8c-405c-8944-5e3167ae4e59
1 parent 0fdd8af commit 0e5e4f2

5 files changed

Lines changed: 36 additions & 9 deletions

‎.github/workflows/arm64-alpine-smoke.yml‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ on:
77
description: "Citus version to build (blank = Dockerfile default)"
88
required: false
99
default: ""
10-
# TEMPORARY: branch-scoped trigger to validate arm64 runner + build.
11-
# Remove before merging to master (keep dispatch-only).
12-
push:
13-
branches:
14-
- ihalatci-arm64-docker-image
1510

1611
jobs:
1712
arm64-alpine-smoke:

‎.github/workflows/publish_docker_images_cron.yml‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,14 @@ jobs:
2626
- name: Checkout repository
2727
uses: actions/checkout@v6
2828

29+
- name: Set up QEMU
30+
uses: docker/setup-qemu-action@v3
31+
32+
- name: Set up Docker Buildx
33+
uses: docker/setup-buildx-action@v3
34+
2935
- name: Clone tools branch
30-
run: git clone -b v0.8.36 --depth=1 https://github.com/citusdata/tools.git tools
36+
run: git clone -b v0.8.38 --depth=1 https://github.com/citusdata/tools.git tools
3137

3238
- name: Install package dependencies
3339
run: sudo apt-get update && sudo apt install libcurl4-openssl-dev libssl-dev python3-testresources
@@ -39,6 +45,8 @@ jobs:
3945
run: docker login -u "${DOCKERHUB_USER_NAME}" -p "${DOCKERHUB_PASSWORD}"
4046

4147
- name: Build and publish docker images
48+
env:
49+
DOCKER_BUILD_MULTI_ARCH: ${{ github.ref == 'refs/heads/master' && '1' || '0' }}
4250
run: |
4351
python -m tools.packaging_automation.publish_docker \
4452
--pipeline_trigger_type "${GITHUB_EVENT_NAME}" \

‎.github/workflows/publish_docker_images_on_manual.yml‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,14 @@ jobs:
2525
- name: Checkout repository
2626
uses: actions/checkout@v6
2727

28+
- name: Set up QEMU
29+
uses: docker/setup-qemu-action@v3
30+
31+
- name: Set up Docker Buildx
32+
uses: docker/setup-buildx-action@v3
33+
2834
- name: Clone tools branch
29-
run: git clone -b v0.8.36 --depth=1 https://github.com/citusdata/tools.git tools
35+
run: git clone -b v0.8.38 --depth=1 https://github.com/citusdata/tools.git tools
3036

3137
- name: Install package dependencies
3238
run: sudo apt-get update && sudo apt install libcurl4-openssl-dev libssl-dev python3-testresources
@@ -38,6 +44,8 @@ jobs:
3844
run: docker login -u "${DOCKERHUB_USER_NAME}" -p "${DOCKERHUB_PASSWORD}"
3945

4046
- name: Build and publish docker images
47+
env:
48+
DOCKER_BUILD_MULTI_ARCH: "1"
4149
run: |
4250
python -m tools.packaging_automation.publish_docker \
4351
--pipeline_trigger_type "${GITHUB_EVENT_NAME}" \

‎.github/workflows/publish_docker_images_on_push.yml‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,14 @@ jobs:
2424
- name: Checkout repository
2525
uses: actions/checkout@v6
2626

27+
- name: Set up QEMU
28+
uses: docker/setup-qemu-action@v3
29+
30+
- name: Set up Docker Buildx
31+
uses: docker/setup-buildx-action@v3
32+
2733
- name: Clone tools branch
28-
run: git clone -b v0.8.36 --depth=1 https://github.com/citusdata/tools.git tools
34+
run: git clone -b v0.8.38 --depth=1 https://github.com/citusdata/tools.git tools
2935

3036
- name: Install package dependencies
3137
run: sudo apt-get update && sudo apt install libcurl4-openssl-dev libssl-dev python3-testresources
@@ -37,6 +43,8 @@ jobs:
3743
run: docker login -u "${DOCKERHUB_USER_NAME}" -p "${DOCKERHUB_PASSWORD}"
3844

3945
- name: Build and publish docker images
46+
env:
47+
DOCKER_BUILD_MULTI_ARCH: ${{ github.ref == 'refs/heads/master' && '1' || '0' }}
4048
run: |
4149
python -m tools.packaging_automation.publish_docker \
4250
--github_ref "${GITHUB_REF}" \

‎.github/workflows/publish_docker_images_on_tag.yml‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,14 @@ jobs:
2727
fetch-depth: 0
2828
ref: master
2929

30+
- name: Set up QEMU
31+
uses: docker/setup-qemu-action@v3
32+
33+
- name: Set up Docker Buildx
34+
uses: docker/setup-buildx-action@v3
35+
3036
- name: Clone tools branch
31-
run: git clone -b v0.8.36 --depth=1 https://github.com/citusdata/tools.git tools
37+
run: git clone -b v0.8.38 --depth=1 https://github.com/citusdata/tools.git tools
3238

3339
- name: Install package dependencies
3440
run: sudo apt-get update && sudo apt install libcurl4-openssl-dev libssl-dev python3-testresources
@@ -40,6 +46,8 @@ jobs:
4046
run: docker login -u "${DOCKERHUB_USER_NAME}" -p "${DOCKERHUB_PASSWORD}"
4147

4248
- name: Build and publish docker images
49+
env:
50+
DOCKER_BUILD_MULTI_ARCH: "1"
4351
run: |
4452
python -m tools.packaging_automation.publish_docker \
4553
--github_ref "${GITHUB_REF}" \

0 commit comments

Comments
 (0)