File tree Expand file tree Collapse file tree 4 files changed +8
-0
lines changed
Expand file tree Collapse file tree 4 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 1818 registry : ghcr.io
1919 username : matteodelabre
2020 password : ${{ secrets.CR_PAT }}
21+ - name : Set up QEMU
22+ uses : docker/setup-qemu-action@v3
2123 - name : Build and publish images
2224 run : |
2325 ./scripts/build -p .
Original file line number Diff line number Diff line change 1414 steps :
1515 - name : Checkout the Git repository
1616 uses : actions/checkout@v3
17+ - name : Set up QEMU
18+ uses : docker/setup-qemu-action@v3
1719 - name : Build images
1820 run : |
1921 ./scripts/build .
Original file line number Diff line number Diff line change 1616 registry : ghcr.io
1717 username : matteodelabre
1818 password : ${{ secrets.CR_PAT }}
19+ - name : Set up QEMU
20+ uses : docker/setup-qemu-action@v3
1921 - name : Build and publish images
2022 run : |
2123 version="$(echo "${{ github.ref }}" | cut -d / -f 3)"
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ version="$2"
4848# Enable BuildKit for better cache behavior
4949# See <https://docs.docker.com/engine/reference/builder/#buildkit>
5050export DOCKER_BUILDKIT=1
51+ docker buildx create --use
5152
5253docker-build () {
5354 from=" $( image-name " $1 " " $version " ) "
@@ -57,6 +58,7 @@ docker-build() {
5758 --build-arg BUILDKIT_INLINE_CACHE=1 \
5859 --build-arg FROM=" $from " \
5960 --cache-from " $( image-name " $2 " ) " \
61+ --platform linux/amd64,linux/arm64 \
6062 --tag " $target " .
6163
6264 if [[ -n $publishflag ]]; then
You can’t perform that action at this time.
0 commit comments