Skip to content

Commit

Permalink
Add: Push stable to greenbone registry (#1665)
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalholthaus authored Jul 4, 2024
1 parent 23e4407 commit 8363a11
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/control.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ jobs:
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN}}
cosign_key_opensight: ${{ secrets.COSIGN_KEY_OPENSIGHT }}
cosign_password_opensight: ${{ secrets.COSIGN_KEY_PASSWORD_OPENSIGHT }}
greenbone_registry: ${{ secrets.GREENBONE_REGISTRY }}
greenbone_registry_user: ${{ secrets.GREENBONE_REGISTRY_USER }}
greenbone_registry_token: ${{ secrets.GREENBONE_REGISTRY_TOKEN }}
mattermost_webhook_url: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
with:
is_latest_tag: ${{needs.init.outputs.docker_build_is_latest}}
is_version_tag: ${{needs.init.outputs.docker_build_is_version }}
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/push-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ on:
required: true
cosign_password_opensight:
required: true
greenbone_registry:
required: true
greenbone_registry_user:
required: true
greenbone_registry_token:
required: true
mattermost_webhook_url:
required: true

# Grants rights to push to the Github container registry.
permissions:
Expand Down Expand Up @@ -122,3 +130,23 @@ jobs:
registry-password: ${{ secrets.GITHUB_TOKEN }}
scout-user: ${{ secrets.dockerhub_user }}
scout-password: ${{ secrets.dockerhub_token }}

greenbone_reg_debian_stable:
name: greenbone-reg:debian:stable
uses: greenbone/workflows/.github/workflows/container-build-push-2nd-gen.yml@main
with:
image-url: community/openvas-scanner
image-labels: |
org.opencontainers.image.vendor=Greenbone
org.opencontainers.image.base.name=greenbone/gvm-libs
artifact-name: rs-binaries
artifact-path: assets
secrets:
COSIGN_KEY_OPENSIGHT: ${{ secrets.cosign_key_opensight }}
COSIGN_KEY_PASSWORD_OPENSIGHT: ${{ secrets.cosign_password_opensight }}
DOCKERHUB_USERNAME: ${{ secrets.dockerhub_user }}
DOCKERHUB_TOKEN: ${{ secrets.dockerhub_token }}
GREENBONE_REGISTRY: ${{ secrets.greenbone_registry }}
GREENBONE_REGISTRY_USER: ${{ secrets.greenbone_registry_user }}
GREENBONE_REGISTRY_TOKEN: ${{ secrets.greenbone_registry_token }}
MATTERMOST_WEBHOOK_URL: ${{ secrets.mattermost_webhook_url }}

0 comments on commit 8363a11

Please sign in to comment.