schutzbot: Also build container on branch pushes

The regression test failed to find the container when not running from a
PR.
This commit is contained in:
sanne 2021-09-28 22:51:27 +02:00 committed by Ondřej Budai
parent 9403c6e795
commit 042eb75de6

View file

@ -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}"