Skip to content

Commit 61b8643

Browse files
committed
multiarch issues with workflow again
1 parent f152d62 commit 61b8643

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/build-images.yaml .github/workflows/controller-images.yaml

+12-6
Original file line numberDiff line numberDiff line change
@@ -24,28 +24,34 @@ jobs:
2424
id: version
2525

2626
# Setup QEMU
27-
- name: Set up QEMU
27+
- name: Setup QEMU
2828
uses: docker/setup-qemu-action@v1
29+
with:
30+
platforms: all
2931

3032
# Set up a buildx runner
3133
- name: Set up Docker Buildx
34+
id: buildx
3235
uses: docker/setup-buildx-action@v1
36+
with:
37+
buildkitd-flags: "--debug"
3338

3439
# Login to the container registry
3540
- name: Login to Container Registry
3641
run: echo ${{ secrets.GHCR_TOKEN }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
3742
if: ${{ github.event_name != 'pull_request' }}
3843

39-
- name: Patch buildx multiarch image
40-
run: |
41-
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
42-
docker buildx create --name multiarch --driver docker-container --use
43-
docker buildx inspect --bootstrap
44+
# - name: Patch buildx multiarch image
45+
# run: |
46+
# docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
47+
# docker buildx create --name multiarch --driver docker-container --use
48+
# docker buildx inspect --bootstrap
4449

4550
# Build and push the image
4651
- name: Build and Push Controller Image
4752
uses: docker/build-push-action@v2
4853
with:
4954
platforms: linux/amd64,linux/arm64,linux/arm/v7
55+
builder: ${{ steps.buildx.outputs.name }}
5056
push: ${{ github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')) }}
5157
tags: ghcr.io/pelotech/jsonnet-controller:${{ steps.version.outputs.tag }}

0 commit comments

Comments
 (0)