From f22eb33484f40a80311c48cb0a3d882fd0c2d9e9 Mon Sep 17 00:00:00 2001 From: pascalholthaus <94793111+pascalholthaus@users.noreply.github.com> Date: Wed, 26 Jun 2024 11:38:12 +0200 Subject: [PATCH] Add: Push workflow for greenbone registry #1113 --- .github/workflows/push.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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 00000000..d72b9d88 --- /dev/null +++ b/.github/workflows/push.yml @@ -0,0 +1,28 @@ +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: + build-docker-file: .docker/Dockerfile + image-url: community/gvm-tools + image-labels: | + org.opencontainers.image.vendor=Greenbone + org.opencontainers.image.documentation=https://greenbone.github.io/gvm-tools/ + org.opencontainers.image.base.name=debian/stable-slim + ref-name: ${{ inputs.ref-name }} + secrets: inherit