Skip to content

Commit 34cb958

Browse files
pascalholthausArnoStiefvater
authored andcommitted
Add: Automatix update back
1 parent d254b10 commit 34cb958

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/push-container.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ jobs:
9191
build-args: ${{ matrix.build.build-args }}
9292
prefix: ${{ matrix.build.prefix }}
9393
tags: ${{ matrix.tags }}
94+
images: |
95+
ghcr.io/${{ github.repository }},enable=true
96+
${{ vars.GREENBONE_REGISTRY }}/community/${{ github.event.repository.name }},enable=${{ github.event_name != 'pull_request' }}
97+
${{ vars.GREENBONE_REGISTRY }}/openvas-detect-dev/${{ github.event.repository.name }},enable=${{ github.event_name != 'pull_request' }}
9498
secrets: inherit
9599

96100
notify:
@@ -116,4 +120,14 @@ jobs:
116120
token: ${{ secrets.GREENBONE_REGISTRY_REPLICATION_TOKEN }}
117121
user: ${{ secrets.GREENBONE_REGISTRY_REPLICATION_USER }}
118122

119-
123+
automatix:
124+
name: Update Automatix
125+
if: ${{ !cancelled() && startsWith(github.ref, 'refs/tags/v') }}
126+
needs: build
127+
uses: greenbone/workflows/.github/workflows/automatix-service.yml@main
128+
with:
129+
service: openvas-scanner
130+
url: ${{ vars.GREENBONE_REGISTRY }}/openvas-detect-dev/${{ github.event.repository.name }}
131+
tag: ${{ github.ref_name }}
132+
artifact-pattern: stable
133+
secrets: inherit

0 commit comments

Comments
 (0)