Disable review apps; use dedicated ci branch

This commit is contained in:
Michael Snoyman 2017-09-07 14:20:44 +03:00
parent 2e44abc382
commit a50739e193
No known key found for this signature in database
GPG Key ID: A048E8C057E86876

View File

@ -48,40 +48,6 @@ build:
docker push "${CI_REGISTRY_IMAGE}:ci-cron"
fi
deploy_review:
stage: deploy
only:
- branches
except:
- master
- ci-cron
environment:
name: stackage-server-review/$CI_BUILD_REF_NAME
url: https://stackage-server-$CI_BUILD_REF_SLUG.review.fpco-untrusted.fpcomplete.com/
on_stop: stop_review
variables:
APPROOT: https://stackage-server-$CI_BUILD_REF_SLUG.review.fpco-untrusted.fpcomplete.com/
script:
- *KUBELOGIN
- echo $KUBE_URL
- echo $APPROOT
- *KUBEAPPLY
stop_review:
stage: deploy
only:
- branches
except:
- master
- ci-cron
when: manual
environment:
name: stackage-server-review/$CI_BUILD_REF_NAME
action: stop
script:
- *KUBELOGIN
- kubectl delete service,deployment -l app=${CI_ENVIRONMENT_SLUG}
deploy_prod:
stage: deploy
only:
@ -110,13 +76,19 @@ deploy_prod:
- kubectl rollout status "deployment/$DEPLOYMENT_NAME"
- kubectl rollout status "deployment/$CRON_DEPLOYMENT_NAME"
deploy_ci_cron:
deploy_ci:
stage: deploy
only:
- ci-cron
- ci
environment:
name: stackage-server-ci
url: https://ci.stackage.org/
variables:
DEPLOYMENT_NAME: "stackage-server-ci"
CRON_DEPLOYMENT_NAME: "stackage-server-cron-ci"
script:
- *KUBELOGIN
- kubectl set image "deployment/$DEPLOYMENT_NAME" stackage-server="$DEPLOYMENT_IMAGE"
- kubectl set image "deployment/$CRON_DEPLOYMENT_NAME" stackage-server-cron="$DEPLOYMENT_IMAGE"
- kubectl rollout status "deployment/$DEPLOYMENT_NAME"
- kubectl rollout status "deployment/$CRON_DEPLOYMENT_NAME"