xx-verify: XX_VERIFY_STATIC env #289
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@v3 | |
- | |
name: Validate | |
uses: docker/bake-action@v2 | |
with: | |
targets: validate | |
test: | |
runs-on: ubuntu-latest | |
continue-on-error: ${{ matrix.allow-failure }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- | |
image: alpine:3.13 | |
typ: alpine | |
allow-failure: false | |
- | |
image: alpine:3.14 | |
typ: alpine | |
allow-failure: false | |
- | |
image: alpine:3.15 | |
typ: alpine | |
allow-failure: false | |
- | |
image: alpine:3.16 | |
typ: alpine | |
allow-failure: false | |
- | |
image: alpine:3.17 | |
typ: alpine | |
allow-failure: false | |
- | |
image: alpine:3.18 | |
typ: alpine | |
allow-failure: false | |
- | |
image: alpine:edge | |
typ: alpine | |
allow-failure: true | |
- | |
image: debian:buster-backports | |
typ: debian | |
allow-failure: true | |
- | |
image: debian:bullseye | |
typ: debian | |
allow-failure: false | |
- | |
image: debian:bookworm | |
typ: debian | |
# FIXME: Set to false when https://github.com/tonistiigi/xx/issues/95 fixed | |
allow-failure: true | |
- | |
image: debian:sid | |
typ: debian | |
allow-failure: true | |
- | |
image: ubuntu:20.04 | |
typ: debian | |
allow-failure: false | |
- | |
image: ubuntu:22.04 | |
typ: debian | |
allow-failure: false | |
- | |
image: redhat/ubi8 | |
typ: rhel | |
allow-failure: false | |
- | |
image: fedora:37 | |
typ: rhel | |
allow-failure: false | |
- | |
image: fedora:38 | |
typ: rhel | |
allow-failure: false | |
- | |
image: centos:7 | |
typ: rhel | |
allow-failure: false | |
- | |
image: rockylinux/rockylinux:8 | |
typ: rhel | |
allow-failure: false | |
- | |
image: rockylinux/rockylinux:9 | |
typ: rhel | |
allow-failure: false | |
- | |
image: oraclelinux:8 | |
typ: rhel | |
allow-failure: false | |
- | |
image: oraclelinux:9 | |
typ: rhel | |
allow-failure: false | |
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 | |
- | |
name: Test | |
uses: docker/bake-action@v2 | |
with: | |
targets: test-${{ matrix.typ }} | |
set: | | |
test-${{ matrix.typ }}.args.TEST_BASE_IMAGE=${{ matrix.image }} | |
build: | |
runs-on: ubuntu-latest | |
needs: | |
- validate | |
- test | |
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 | |
- | |
name: Docker meta | |
id: meta | |
uses: docker/metadata-action@v4 | |
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@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- | |
name: Build | |
uses: docker/bake-action@v2 | |
with: | |
files: | | |
./docker-bake.hcl | |
${{ steps.meta.outputs.bake-file }} | |
targets: base-all | |
push: ${{ github.event_name != 'pull_request' }} |