Commit cf324061 authored by Vincent's avatar Vincent

Pass credentials when removing old deployments

parent 2a937443
Pipeline #25536482 passed with stage
in 1 minute and 42 seconds
......@@ -15,7 +15,7 @@ start_review:
- NOW_URL=$(echo ${URL} | sed s/'http:\/\/'/''/g | sed s/'https:\/\/'//g)
- now --token=${NOW_TOKEN} alias set ${NOW_URL} ${REPO_NAME}-${CI_COMMIT_REF_SLUG}.now.sh
# Remove old, unaliased deployments:
- now rm ${REPO_NAME}-${CI_COMMIT_REF_SLUG} --safe --yes
- now rm ${REPO_NAME}-${CI_COMMIT_REF_SLUG} --safe --yes --token=${NOW_TOKEN}
environment:
name: review/$CI_BUILD_REF_NAME
url: https://$REPO_NAME-$CI_COMMIT_REF_SLUG.now.sh
......@@ -47,7 +47,7 @@ start_production:
- NOW_URL=$(echo ${URL} | sed s/'http:\/\/'/''/g | sed s/'https:\/\/'//g)
- now --token=${NOW_TOKEN} alias set ${NOW_URL} whereisscihub.now.sh
# Remove old, unaliased deployments:
- now rm ${REPO_NAME}-${CI_COMMIT_REF_SLUG} --safe --yes
- now rm ${REPO_NAME}-${CI_COMMIT_REF_SLUG} --safe --yes --token=${NOW_TOKEN}
environment:
name: production
url: https://whereisscihub.now.sh
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment