Create auto-merge.yml (#91) #5
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
name: Build & Push to Greenbone Registry | |
on: | |
push: | |
branches: [ main ] | |
tags: ["v*"] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
inputs: | |
ref-name: | |
type: string | |
description: "The ref to build a container image from. For example a tag v23.0.0." | |
required: true | |
jobs: | |
build-push-debian-stable-container: | |
name: Build and Push debian:stable to Greenbone Registry | |
uses: greenbone/workflows/.github/workflows/container-build-push-2nd-gen.yml@main | |
with: | |
image-url: community/openvas-smb | |
image-labels: | | |
org.opencontainers.image.vendor=Greenbone | |
org.opencontainers.image.base.name=debian:stable-slim | |
ref-name: ${{ inputs.ref-name }} | |
secrets: inherit | |
build-push-debian-oldstable-container: | |
name: Build and Push debian:oldstable to Greenbone Registry | |
uses: greenbone/workflows/.github/workflows/container-build-push-2nd-gen.yml@main | |
with: | |
build-docker-file: .docker/prod-oldstable.Dockerfile | |
image-url: community/openvas-smb | |
image-labels: | | |
org.opencontainers.image.vendor=Greenbone | |
org.opencontainers.image.base.name=debian:stable-slim | |
base-image-label: "oldstable" | |
ref-name: ${{ inputs.ref-name }} | |
secrets: inherit | |
build-push-debian-testing-container: | |
name: Build and Push debian:testing to Greenbone Registry | |
uses: greenbone/workflows/.github/workflows/container-build-push-2nd-gen.yml@main | |
with: | |
build-docker-file: .docker/prod-testing.Dockerfile | |
image-url: community/openvas-smb | |
image-labels: | | |
org.opencontainers.image.vendor=Greenbone | |
org.opencontainers.image.base.name=debian:stable-slim | |
base-image-label: "testing" | |
ref-name: ${{ inputs.ref-name }} | |
secrets: inherit |