Skip to content

Commit

Permalink
Change: Adjust triggering gvmd and gsad repos after new release
Browse files Browse the repository at this point in the history
Trigger builds of gvmd and gsad container images after a new tag has
been created.
  • Loading branch information
bjoernricks committed Jun 9, 2023
1 parent 07fe9dc commit 1b6c351
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,20 +87,27 @@ jobs:
trigger-stable-projects:
needs: production
if: github.ref_type == 'tag' && startsWith(github.ref_name, 'v')
name: Trigger update container images in related projects
name: Trigger update container images in related projects for new tags
strategy:
fail-fast: false
matrix:
repository: ["greenbone/gvmd", "greenbone/gsad"]
runs-on: ubuntu-latest
steps:
- name: Trigger stable ${{ matrix.repository }} container image build
- name: Trigger ${{ matrix.repository }} build container image build
uses: greenbone/actions/trigger-workflow@v2
with:
token: ${{ secrets.GREENBONE_BOT_TOKEN }}
repository: ${{ matrix.repository }}
workflow: build-container.yml
ref: main
- name: Trigger ${{ matrix.repository }} container image build
uses: greenbone/actions/trigger-workflow@v2
with:
token: ${{ secrets.GREENBONE_BOT_TOKEN }}
repository: ${{ matrix.repository }}
workflow: container.yml
ref: stable
ref: main

trigger-related-projects:
needs: production
Expand All @@ -109,7 +116,7 @@ jobs:
strategy:
fail-fast: false
matrix:
repository: ["greenbone/openvas-scanner", "greenbone/gvmd", "greenbone/gsad", "greenbone/boreas"]
repository: ["greenbone/openvas-scanner", "greenbone/boreas"]
runs-on: ubuntu-latest
steps:
- name: Trigger main ${{ matrix.repository }} container image build
Expand Down

0 comments on commit 1b6c351

Please sign in to comment.