From 17c8e73ce7ec1f171121bb9b2ab1c366968b0a97 Mon Sep 17 00:00:00 2001 From: pascalholthaus <94793111+pascalholthaus@users.noreply.github.com> Date: Wed, 26 Jun 2024 13:14:23 +0200 Subject: [PATCH] Add: push push to greenbone reg (#24) --- .github/workflows/push.yml | 73 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 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 0000000..6286561 --- /dev/null +++ b/.github/workflows/push.yml @@ -0,0 +1,73 @@ +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 + schedule: + # rebuild image every sunday + - cron: "0 0 * * 0" + +jobs: + build-redis-server: + name: Build and Push Redis Server to Greenbone Registry + uses: greenbone/workflows/.github/workflows/container-build-push-2nd-gen.yml@main + with: + build-docker-file: ./redis-server/Dockerfile + build-context: ./redis-server + image-url: community/redis-server + image-labels: | + org.opencontainers.image.vendor=Greenbone + org.opencontainers.image.documentation=https://greenbone.github.io/docs/ + org.opencontainers.image.base.name=debian:stable-slim + ref-name: ${{ inputs.ref-name }} + secrets: inherit + + build-mqtt-broker: + name: Build and Push mqtt Broker to Greenbone Registry + uses: greenbone/workflows/.github/workflows/container-build-push-2nd-gen.yml@main + with: + build-docker-file: ./mqtt-broker/Dockerfile + build-context: ./mqtt-broker + image-url: community/mqtt-broker + image-labels: | + org.opencontainers.image.vendor=Greenbone + org.opencontainers.image.documentation=https://greenbone.github.io/docs/ + org.opencontainers.image.base.name=debian:stable-slim + ref-name: ${{ inputs.ref-name }} + secrets: inherit + + build-gpg-data: + name: Build and Push gpg Data to Greenbone Registry + uses: greenbone/workflows/.github/workflows/container-build-push-2nd-gen.yml@main + with: + build-docker-file: ./gpg-data/Dockerfile + build-context: ./gpg-data + image-url: community/gpg-data + image-labels: | + org.opencontainers.image.vendor=Greenbone + org.opencontainers.image.documentation=https://greenbone.github.io/docs/ + org.opencontainers.image.base.name=busybox:stable + ref-name: ${{ inputs.ref-name }} + secrets: inherit + + build-doxygen: + name: Build and Push Doxygen to Greenbone Registry + uses: greenbone/workflows/.github/workflows/container-build-push-2nd-gen.yml@main + with: + build-docker-file: ./doxygen/doxygen.Dockerfile + build-context: ./doxygen + image-url: community/doxygen + image-labels: | + org.opencontainers.image.vendor=Greenbone + org.opencontainers.image.base.name=debian:stable-slim + ref-name: ${{ inputs.ref-name }} + secrets: inherit