-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add: Push workflow for greenbone registry #4075
- Loading branch information
1 parent
1053a7d
commit 639ce97
Showing
2 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
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
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,26 @@ | ||
name: Build and 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: | ||
name: Build and Push to Greenbone Registry | ||
uses: greenbone/workflows/.github/workflows/container-build-push-2nd-gen.yml@main | ||
with: | ||
image-url: community/gsa | ||
image-labels: | | ||
org.opencontainers.image.vendor=Greenbone | ||
org.opencontainers.image.base.name=greenbone/gsad | ||
ref-name: ${{ inputs.ref-name }} | ||
secrets: inherit |