Merge pull request #92 from VedRatan/issue_91 #48
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
# SPDX-License-Identifier: Apache-2.0 | |
# Copyright 2023 Authors of Nimbus | |
name: Latest release | |
on: | |
push: | |
branches: | |
- main | |
- "v*" | |
create: | |
branches: | |
- "v*" | |
permissions: read-all | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
release-nimbus-image: | |
if: github.repository == '5GSEC/nimbus' | |
name: Build and push nimbus image | |
uses: ./.github/workflows/release-image.yaml | |
with: | |
WORKING_DIRECTORY: . | |
secrets: inherit | |
release-adapters-image: | |
if: github.repository == '5GSEC/nimbus' | |
strategy: | |
matrix: | |
adapters: [ "nimbus-kubearmor", "nimbus-netpol", "nimbus-kyverno" ] | |
name: Build and push ${{ matrix.adapters }} adapter's image | |
uses: ./.github/workflows/release-image.yaml | |
with: | |
WORKING_DIRECTORY: ./pkg/adapter/${{ matrix.adapters }} | |
secrets: inherit |