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:
parent
9403c6e795
commit
042eb75de6
1 changed files with 3 additions and 5 deletions
|
|
@ -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}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue