Skip to content

Add optional log file config option #19

Add optional log file config option

Add optional log file config option #19

name: Docker Build and Push
on:
push:
branches:
- main
env:
LOCAL_BUILD: false
jobs:
build-and-push-amd64:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
buildkitd-flags: --debug
driver-opts: image=moby/buildkit:v0.9.1
- name: Build and push for amd64 platform
run: |
docker buildx build \
--platform linux/amd64 \
.
build-and-push-armv7:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
buildkitd-flags: --debug
driver-opts: image=moby/buildkit:v0.9.1
- name: Set Swap Space
uses: pierotofy/[email protected]
with:
swap-size-gb: 10
- run: |
# Workaround for https://github.com/rust-lang/cargo/issues/8719
sudo mkdir -p /var/lib/docker
sudo mount -t tmpfs -o size=10G none /var/lib/docker
sudo systemctl restart docker
- name: Build and push for armv7
run: |
docker buildx build \
--platform linux/arm/v7 \
.
build-and-push-arm64:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
buildkitd-flags: --debug
driver-opts: image=moby/buildkit:v0.9.1
- name: Build and push for arm64v8 platform
run: |
docker buildx build \
--platform linux/arm64/v8 \
.