From 042eb75de688cbe6e18425505e90b7d3cf6ceea7 Mon Sep 17 00:00:00 2001 From: sanne Date: Tue, 28 Sep 2021 22:51:27 +0200 Subject: [PATCH] schutzbot: Also build container on branch pushes The regression test failed to find the container when not running from a PR. --- schutzbot/containerbuild.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/schutzbot/containerbuild.sh b/schutzbot/containerbuild.sh index e2ad1acb9..276acaf11 100755 --- a/schutzbot/containerbuild.sh +++ b/schutzbot/containerbuild.sh @@ -19,8 +19,6 @@ podman \ # Push to reuse later in the pipeline (see regression tests) BRANCH_NAME="${BRANCH_NAME:-${CI_COMMIT_BRANCH}}" -if [[ "$BRANCH_NAME" =~ ^PR-[0-9]+$ ]]; then - podman push \ - --creds "${QUAY_USERNAME}":"${QUAY_PASSWORD}" \ - "${IMAGE_NAME}:${IMAGE_TAG}" -fi +podman push \ + --creds "${QUAY_USERNAME}":"${QUAY_PASSWORD}" \ + "${IMAGE_NAME}:${IMAGE_TAG}"