-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change: Replace container.yml with push.yml -> pushes to new registry (…
…#89) Co-authored-by: Robert Schardt <robert.schardt@Macbook-Robert-Schardt.local>
- Loading branch information
1 parent
845c751
commit 8e1c8ad
Showing
2 changed files
with
52 additions
and
144 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
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 |