Skip to content

Commit b49194d

Browse files
committed
ci: multi-platform image output
1 parent 772e7ac commit b49194d

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

.github/workflows/ci-cd.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,17 @@ jobs:
8484
username: ${{ github.actor }}
8585
password: ${{ secrets.GITHUB_TOKEN }}
8686

87+
- name: Set up QEMU
88+
uses: docker/setup-qemu-action@v3
89+
90+
- name: Set up Docker Buildx
91+
uses: docker/setup-buildx-action@v3
92+
8793
- name: Build and push
88-
uses: docker/build-push-action@v5
94+
uses: docker/build-push-action@v6
8995
with:
9096
context: .
97+
platforms: linux/amd64,linux/arm64
9198
push: true
9299
tags: ${{ steps.meta.outputs.tags }}
93100
labels: ${{ steps.meta.outputs.labels }}

.github/workflows/release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ jobs:
5757
5858
VERSION=$(git describe --tags --abbrev=0 | sed 's/^v//')
5959
sed -E "s/^appVersion:.+$/appVersion: '$VERSION'/" -i install/kubernetes/github-actions-cache-server/Chart.yaml
60+
git stage install/kubernetes/github-actions-cache-server/Chart.yaml
6061
git commit --amend --no-edit
6162
6263
echo "RELEASE_REF=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
@@ -116,10 +117,17 @@ jobs:
116117
username: ${{ github.actor }}
117118
password: ${{ secrets.GITHUB_TOKEN }}
118119

120+
- name: Set up QEMU
121+
uses: docker/setup-qemu-action@v3
122+
123+
- name: Set up Docker Buildx
124+
uses: docker/setup-buildx-action@v3
125+
119126
- name: Build and push
120-
uses: docker/build-push-action@v5
127+
uses: docker/build-push-action@v6
121128
with:
122129
context: .
123130
push: true
131+
platforms: linux/amd64,linux/arm64
124132
tags: ${{ steps.meta.outputs.tags }}
125133
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)