Skip to content

Commit cb6641c

Browse files
Add: Push workflow for greenbone registry #823
1 parent 3f93daa commit cb6641c

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/push.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Build and Push to Greenbone Registry
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
tags: ["v*"]
7+
pull_request:
8+
branches: [ main ]
9+
workflow_dispatch:
10+
inputs:
11+
ref-name:
12+
type: string
13+
description: "The ref to build a container image from. For example a tag v23.0.0."
14+
required: true
15+
16+
jobs:
17+
build:
18+
name: Build and Push to Greenbone Registry
19+
uses: greenbone/workflows/.github/workflows/container-build-push-2nd-gen.yml@main
20+
with:
21+
image-url: community/gvm-libs
22+
image-labels: |
23+
org.opencontainers.image.vendor=Greenbone
24+
org.opencontainers.image.base.name=debian:stable-slim
25+
ref-name: ${{ inputs.ref-name }}
26+
secrets: inherit

0 commit comments

Comments
 (0)