Skip to content

Commit

Permalink
Change: Use new trigger-workflow action to update dependent images
Browse files Browse the repository at this point in the history
When the gvm-libs container has re-build all dependent images should be
re-build too.
  • Loading branch information
bjoernricks committed Sep 29, 2022
1 parent 7cadb24 commit 336e996
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,20 +61,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Trigger main openvas-scanner container image build
run: |
curl -X POST https://api.github.com/repos/greenbone/openvas-scanner/dispatches \
-H 'Accept: application/vnd.github.everest-preview+json' \
-u greenbonebot:${{ secrets.GREENBONE_BOT_TOKEN }} \
--data '{"event_type": "update-main-images"}'
uses: greenbone/actions/trigger-workflow@v2
with:
token: ${{ secrets.GREENBONE_BOT_TOKEN }}
repository: greenbone/openvas-scanner
workflow: container.yml
ref: main
- name: Trigger main gvmd container image build
run: |
curl -X POST https://api.github.com/repos/greenbone/gvmd/dispatches \
-H 'Accept: application/vnd.github.everest-preview+json' \
-u greenbonebot:${{ secrets.GREENBONE_BOT_TOKEN }} \
--data '{"event_type": "update-main-images"}'
uses: greenbone/actions/trigger-workflow@v2
with:
token: ${{ secrets.GREENBONE_BOT_TOKEN }}
repository: greenbone/gvmd
workflow: container.yml
ref: main
- name: Trigger main gsad container image build
run: |
curl -X POST https://api.github.com/repos/greenbone/gsad/dispatches \
-H 'Accept: application/vnd.github.everest-preview+json' \
-u greenbonebot:${{ secrets.GREENBONE_BOT_TOKEN }} \
--data '{"event_type": "update-main-images"}'
uses: greenbone/actions/trigger-workflow@v2
with:
token: ${{ secrets.GREENBONE_BOT_TOKEN }}
repository: greenbone/gsad
workflow: container.yml
ref: main

0 comments on commit 336e996

Please sign in to comment.