From c8413bf94ba58687381b4e82175acf579b4ad960 Mon Sep 17 00:00:00 2001 From: Jaspar Stach Date: Tue, 3 Sep 2024 07:16:54 +0200 Subject: [PATCH] Add: Push to self-hosted registry workflow for image --- .github/workflows/push.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/push.yaml diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml new file mode 100644 index 0000000..5b94828 --- /dev/null +++ b/.github/workflows/push.yaml @@ -0,0 +1,27 @@ +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: + push: + name: Build and push to self-hosted harbor + uses: greenbone/workflows/.github/workflows/container-build-push-2nd-gen.yml@main + with: + image-labels: | + org.opencontainers.image.vendor=Greenbone + org.opencontainers.image.documentation=https://greenbone.github.io/docs/ + org.opencontainers.image.base.name=debian:stable-slim + image-url: community/greenbone-feed-sync + ref-name: ${{ inputs.ref-name }} + secrets: inherit