ci: multi-arch build
This commit is contained in:

committed by
Carl Pearson

parent
6e8e1d1b5c
commit
a62ce29d34
23
.github/workflows/ghcr-push.yml
vendored
23
.github/workflows/ghcr-push.yml
vendored
@@ -20,15 +20,24 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
name: Checkout
|
name: Checkout
|
||||||
|
-
|
||||||
- name: Build
|
# Add support for more platforms with QEMU (optional)
|
||||||
run: |
|
# https://github.com/docker/setup-qemu-action
|
||||||
docker build -f clang-format-16.dockerfile -t ghcr.io/cwpearson/clang-format-16:latest .
|
name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v3
|
||||||
- name: Publish to GHCR
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
- name: Log in to GHCR
|
||||||
run: |
|
run: |
|
||||||
echo '${{secrets.GHCR_TOKEN}}' | docker login ghcr.io -u cwpearson --password-stdin
|
echo '${{secrets.GHCR_TOKEN}}' | docker login ghcr.io -u cwpearson --password-stdin
|
||||||
docker push ghcr.io/cwpearson/clang-format-16:latest
|
- name: Build and Push
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
file: clang-format-16.dockerfile
|
||||||
|
push: true
|
||||||
|
platforms: linux/amd64,linux/arm64,linux/ppc64le
|
||||||
|
tags: |
|
||||||
|
ghcr.io/${{ github.repository_owner }}/clang-format-16:latest
|
||||||
build-8:
|
build-8:
|
||||||
name: Build + Publish 8
|
name: Build + Publish 8
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
Reference in New Issue
Block a user