Skip to content

Build

Build #325

Workflow file for this run

---
name: Build
on:
push:
branches:
- "**"
pull_request:
schedule:
- cron: "20 10 * * *" # everyday at 10:20 UTC
workflow_dispatch:
permissions:
actions: read
contents: read
env:
QEMU_STRACE: "true"
jobs:
diagnostics:
name: "Diagnostics"
runs-on: ubuntu-latest
steps:
- name: Check GitHub Status
uses: crazy-max/ghaction-github-status@df4d23a4977438215339cf0fafceda8d9af8a0e5 # tag=v4.0.0
with:
overall_threshold: major
packages_threshold: major_outage
- name: Dump context
uses: crazy-max/ghaction-dump-context@5355a8e5e6ac5a302e746a1c4b7747a0393863c8 # tag=v2.3.0
build-image-alpine:
name: "Alpine"
runs-on: ubuntu-latest
timeout-minutes: 3
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm/v6
- linux/arm/v7
- linux/arm64
- linux/ppc64le
- linux/s390x
base_tag:
- 18-alpine3.19
- 20-alpine3.19
steps:
- name: Checkout
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # tag=v4.1.5
- name: Set up QEMU
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # tag=v3.0.0
with:
image: tonistiigi/binfmt:master
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # tag=v3.3.0
- name: Build image
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # tag=v5.3.0
with:
build-args: BASE_TAG=${{ matrix.base_tag }}
context: .
file: ./Dockerfile-alpine
outputs: type=docker,dest=/tmp/image.tar
platforms: ${{ matrix.platform }}
push: false
build-image-debian:
name: "Debian"
runs-on: ubuntu-latest
timeout-minutes: 3
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
# - linux/arm/v6
- linux/arm/v7
- linux/arm64
- linux/ppc64le
- linux/s390x
base_tag:
- 18-bookworm-slim
- 20-bookworm-slim
steps:
- name: Checkout
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # tag=v4.1.5
- name: Set up QEMU
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # tag=v3.0.0
with:
image: tonistiigi/binfmt:master
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # tag=v3.3.0
- name: Build image
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # tag=v5.3.0
with:
build-args: BASE_TAG=${{ matrix.base_tag }}
context: .
file: ./Dockerfile-debian
outputs: type=docker,dest=/tmp/image.tar
platforms: ${{ matrix.platform }}
push: false