Skip to content

Commit

Permalink
use composite workflow to make it not fail
Browse files Browse the repository at this point in the history
  • Loading branch information
BeryJu committed May 2, 2024
1 parent b0b3489 commit 7e11b9a
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 16 deletions.
27 changes: 27 additions & 0 deletions .github/actions/build-target/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "Build individual target"
description: "Build individual target"

inputs:
target:
description: "make target to build"
required: true

runs:
using: "composite"
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- shell: bash
run: |
set -xe
docker buildx create --use --platform=linux/arm64,linux/amd64 --name multi-platform-builder
docker buildx inspect --bootstrap
docker buildx install
make DOCKER_BUILDX_FLAGS="--platform linux/amd64,linux/arm64 --push" ${{ inputs.target }}
make test
47 changes: 31 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,37 @@ permissions:
packages: write

jobs:
build:
name: Build
debian-fips:
name: debian-fips
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
- uses: ./.github/actions/setup
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: |
set -xe
docker buildx create --use --platform=linux/arm64,linux/amd64 --name multi-platform-builder
docker buildx inspect --bootstrap
docker buildx install
make DOCKER_BUILDX_FLAGS="--platform linux/amd64,linux/arm64 --push" all
make test
postgresql_version: debian-fips
xmlsec1-fips:
needs:
- debian-fips
name: xmlsec1-fips
runs-on: ubuntu-latest
steps:
- uses: ./.github/actions/setup
with:
postgresql_version: xmlsec1-fips
python-fips:
needs:
- xmlsec1-fips
name: python-fips
runs-on: ubuntu-latest
steps:
- uses: ./.github/actions/setup
with:
postgresql_version: python-fips
python-fips-full:
needs:
- python-fips
name: python-fips-full
runs-on: ubuntu-latest
steps:
- uses: ./.github/actions/setup
with:
postgresql_version: python-fips-full

0 comments on commit 7e11b9a

Please sign in to comment.