From c7af665483a5ed2046ee35eece2c4de5eef5c6d6 Mon Sep 17 00:00:00 2001 From: Pascal Holthaus Date: Mon, 24 Jun 2024 07:21:45 +0200 Subject: [PATCH] Add: push.yml --- .github/workflows/push.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/push.yml diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml new file mode 100644 index 000000000..901d66a7f --- /dev/null +++ b/.github/workflows/push.yml @@ -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-2rd-gen.yml@main + with: + image-url: community/gsad + image-labels: | + org.opencontainers.image.vendor=Greenbone + org.opencontainers.image.base.name=greenbone/gvm-libs + ref-name: ${{ inputs.ref-name }} + secrets: inherit