ld: dockerfile enhancements #601
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- 'master' | |
tags: | |
- 'v*' | |
pull_request: | |
branches: | |
- 'master' | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v4 | |
- | |
name: Validate | |
uses: docker/bake-action@v5 | |
with: | |
targets: validate | |
test: | |
uses: ./.github/workflows/.test.yml | |
secrets: inherit | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- | |
image: alpine:3.17 | |
base: alpine | |
allow-failure: false | |
- | |
image: alpine:3.18 | |
base: alpine | |
allow-failure: false | |
- | |
image: alpine:3.19 | |
base: alpine | |
allow-failure: false | |
- | |
image: alpine:3.20 | |
base: alpine | |
allow-failure: false | |
- | |
image: alpine:3.21 | |
base: alpine | |
allow-failure: false | |
- | |
image: alpine:edge | |
base: alpine | |
allow-failure: true | |
- | |
image: debian:bullseye-backports | |
base: debian | |
allow-failure: true | |
- | |
image: debian:bookworm | |
base: debian | |
allow-failure: false | |
- | |
image: debian:bookworm-backports | |
base: debian | |
allow-failure: false | |
- | |
image: debian:trixie | |
base: debian | |
allow-failure: false | |
- | |
image: debian:sid | |
base: debian | |
allow-failure: true | |
- | |
image: ubuntu:20.04 | |
base: debian | |
allow-failure: false | |
- | |
image: ubuntu:22.04 | |
base: debian | |
allow-failure: false | |
- | |
image: ubuntu:24.04 | |
base: debian | |
allow-failure: false | |
- | |
image: redhat/ubi8 | |
base: rhel | |
allow-failure: false | |
- | |
image: fedora:38 | |
base: rhel | |
allow-failure: false | |
- | |
image: fedora:39 | |
base: rhel | |
allow-failure: false | |
- | |
image: fedora:40 | |
base: rhel | |
allow-failure: false | |
- | |
image: fedora:41 | |
base: rhel | |
allow-failure: false | |
- | |
image: centos:7 | |
base: rhel | |
allow-failure: false | |
- | |
image: rockylinux/rockylinux:8 | |
base: rhel | |
allow-failure: false | |
- | |
image: rockylinux/rockylinux:9 | |
base: rhel | |
allow-failure: false | |
- | |
image: oraclelinux:8 | |
base: rhel | |
allow-failure: false | |
- | |
image: oraclelinux:9 | |
base: rhel | |
allow-failure: false | |
with: | |
image: ${{ matrix.image }} | |
base: ${{ matrix.base }} | |
allow-failure: ${{ matrix.allow-failure }} | |
build: | |
runs-on: ubuntu-latest | |
needs: | |
- validate | |
- test | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v4 | |
- | |
name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- | |
name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- | |
name: Docker meta | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: | | |
tonistiigi/xx | |
tags: | | |
type=ref,event=branch | |
type=ref,event=pr | |
type=semver,pattern={{version}} | |
bake-target: meta-helper | |
- | |
name: Login to DockerHub | |
if: github.event_name != 'pull_request' | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- | |
name: Build | |
uses: docker/bake-action@v5 | |
with: | |
files: | | |
./docker-bake.hcl | |
${{ steps.meta.outputs.bake-file }} | |
targets: xx-all | |
push: ${{ github.event_name != 'pull_request' }} |