From 0187b218be5803988b1c2c05f925f409cf55c3a8 Mon Sep 17 00:00:00 2001 From: Pascal Holthaus Date: Wed, 26 Jun 2024 10:01:43 +0200 Subject: [PATCH 1/2] 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 0000000000..0c27150a3e --- /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-2nd-gen.yml@main + with: + image-url: community/gsa + image-labels: | + org.opencontainers.image.vendor=Greenbone + org.opencontainers.image.base.name=greenbone/gsad + ref-name: ${{ inputs.ref-name }} + secrets: inherit From cbc9c22ef8f555f1ebe6b05b72d3c14d130f4043 Mon Sep 17 00:00:00 2001 From: Pascal Holthaus Date: Wed, 26 Jun 2024 10:50:03 +0200 Subject: [PATCH 2/2] Change: Build container to native platform --- .docker/prod.Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.docker/prod.Dockerfile b/.docker/prod.Dockerfile index c3aa4826e3..6d7df41079 100644 --- a/.docker/prod.Dockerfile +++ b/.docker/prod.Dockerfile @@ -1,7 +1,7 @@ ARG VERSION=stable ARG DEBIAN_FRONTEND=noninteractive -FROM --platform=linux/amd64 debian:stable-slim as builder +FROM debian:stable-slim as builder ENV NODE_VERSION=node_18.x ENV NODE_KEYRING=/usr/share/keyrings/nodesource.gpg