Skip to content

Commit

Permalink
Fixing release image multi-arch support
Browse files Browse the repository at this point in the history
Fixing multi-arch support for release image github workflow.
Adding openscap image job to the release workflow.
  • Loading branch information
Vincent056 committed Jun 13, 2024
1 parent f90f53e commit 9b31a0a
Showing 1 changed file with 26 additions and 24 deletions.
50 changes: 26 additions & 24 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ on:

jobs:
container-main:
strategy:
matrix:
platform:
- linux/amd64
- linux/ppc64le
- linux/s390x
permissions:
contents: read
id-token: write
Expand All @@ -23,16 +17,24 @@ jobs:
registry_org: complianceascode
tag: ${GITHUB_REF_NAME}
dockerfile_path: build/Dockerfile
vendor: 'Compliance Operator Authors'
platforms: ${{ matrix.platform }}
vendor: "Compliance Operator Authors"
platforms: "linux/amd64,linux/ppc64le,linux/s390x"

openscap-container:
permissions:
contents: read
id-token: write
packages: write
uses: metal-toolbox/container-push/.github/workflows/container-push.yml@main
with:
name: openscap-ocp
registry_org: complianceascode
tag: ${GITHUB_REF_NAME}
dockerfile_path: images/openscap/Dockerfile
vendor: "Compliance Operator Authors"
platforms: "linux/amd64,linux/ppc64le,linux/s390x"

bundle-container:
strategy:
matrix:
platform:
- linux/amd64
- linux/ppc64le
- linux/s390x
permissions:
contents: read
id-token: write
Expand All @@ -43,16 +45,16 @@ jobs:
registry_org: complianceascode
tag: ${GITHUB_REF_NAME}
dockerfile_path: bundle.Dockerfile
vendor: 'Compliance Operator Authors'
platforms: ${{ matrix.platform }}
vendor: "Compliance Operator Authors"
platforms: "linux/amd64,linux/ppc64le,linux/s390x"

catalog-container-push-pr:
strategy:
matrix:
platform:
- linux/amd64
- linux/ppc64le
- linux/s390x
# Temporary workaround for SBOM issue https://github.com/metal-toolbox/container-push/pull/77
if: always()
needs:
- container-main
- openscap-container
- bundle-container
permissions:
contents: read
id-token: write
Expand All @@ -63,7 +65,7 @@ jobs:
registry_org: complianceascode
tag: ${GITHUB_REF_NAME}
dockerfile_path: catalog.Dockerfile
vendor: 'Compliance Operator Authors'
vendor: "Compliance Operator Authors"
prepare_command: |
make catalog-docker BUNDLE_IMGS=ghcr.io/complianceascode/compliance-operator-bundle:${GITHUB_REF_NAME}
platforms: ${{ matrix.platform }}
platforms: "linux/amd64,linux/ppc64le,linux/s390x"

0 comments on commit 9b31a0a

Please sign in to comment.