38 lines
776 B
YAML
38 lines
776 B
YAML
|
|
name: Build container images
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: catthehacker/ubuntu:act-latest
|
|
steps:
|
|
- name: Check out the repo
|
|
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
|
|
|
|
- name: Build
|
|
uses: docker/build-push-action@v4
|
|
env:
|
|
# see <https://docs.gitea.com/usage/actions/comparison#dockerbuild-push-actionv4>
|
|
ACTIONS_RUNTIME_TOKEN: ''
|
|
with:
|
|
context: .
|
|
push: false
|
|
platforms: |
|
|
linux/amd64
|
|
linux/arm64
|
|
build-args: |
|
|
PYTHON_VERSION=3
|
|
ALPINE_VERSION=3.18
|