Skip to content

Commit

Permalink
fix: ensure pipeline is in a passing state before publishing (#1068)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-butler-irl authored Nov 15, 2024
1 parent 68d44fc commit f7408db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pipeline-assets/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ if [ -n "$1" ];then
EXTRA_TAGS="${EXTRA_TAGS},${1}"
fi

if "${ONE_PIPELINE_PATH}"/internal/pipeline/evaluator_ci; then
# ensure the pipeline is in a passing state before publishing
ONE_PIPELINE_STATUS=$(get_env one-pipeline-status 0)
if [ "$ONE_PIPELINE_STATUS" -eq 0 ]; then

ibmcloud_api_key=$(get_env ciso-ibmcloud-api-key "")
if [[ -z "$ibmcloud_api_key" ]]; then
Expand Down

0 comments on commit f7408db

Please sign in to comment.