diff options
author | micah <micah@riseup.net> | 2020-02-24 15:16:42 -0800 |
---|---|---|
committer | micah <micah@riseup.net> | 2020-02-24 15:16:42 -0800 |
commit | 197ad25e5a327b796167421354751a72d6fad5e3 (patch) | |
tree | b8bcdb4c05f2dacc9f9d52ec79477a5345eb6d44 | |
parent | 70d38c307040ff08f3289631f350e3cc5d63f944 (diff) |
Update .gitlab-ci.yml
Cleanup review app things that do not exist anymore
-rw-r--r-- | .gitlab-ci.yml | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0a6e14f..471904e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,70 +1,6 @@ --- - -variables: - OPENSHIFT_SERVER: hexacab.org:8443 - OPENSHIFT_DOMAIN: apps.hexacab.org - PROJECT_NAME: leapse - # Configure this variable in Secure Variables: - # OPENSHIFT_TOKEN: my.openshift.token - stages: - - review - production - - cleanup - -.deploy: &deploy - image: ayufan/openshift-cli - before_script: - - oc login "${OPENSHIFT_SERVER}" --token="${OPENSHIFT_TOKEN}" - - oc project "${PROJECT_NAME}-${CI_PROJECT_ID}" 2> /dev/null || oc new-project "${PROJECT_NAME}-${CI_PROJECT_ID}" - script: - - "oc get services ${APP} 2> /dev/null || oc new-app ${CI_REPOSITORY_URL}#${CI_COMMIT_REF_NAME} --name=${APP} --strategy=docker && sleep 3 && oc logs -f bc/${APP}" - - "oc status -v" - - "oc expose dc ${APP} --port=8080 && oc expose service ${APP} --port=8080 --hostname=${PROJECT_NAME}-${CI_ENVIRONMENT_SLUG}.${OPENSHIFT_DOMAIN}" - -review: - <<: *deploy - stage: review - variables: - APP: review-$CI_COMMIT_REF_NAME - APP_HOST: $PROJECT_NAME-$CI_ENVIRONMENT_SLUG.$OPENSHIFT_DOMAIN - environment: - name: review/$CI_COMMIT_REF_NAME - url: http://$PROJECT_NAME-$CI_ENVIRONMENT_SLUG.$OPENSHIFT_DOMAIN - on_stop: stop-review - only: - - branches@leap/leap_se - - branches@varac/leap_se - - branches@kwadronaut/leap_se - - branches@micah/leap_se - - branches@elijah/leap_se - - branches@meskio/leap_se - - branches@drebs/leap_se - except: - - master - -stop-review: - <<: *deploy - stage: cleanup - script: - - oc delete all -l "app=$APP" - when: manual - variables: - APP: review-$CI_COMMIT_REF_NAME - GIT_STRATEGY: none - environment: - name: review/$CI_COMMIT_REF_NAME - action: stop - only: - - branches@leap/leap_se - - branches@kwadronaut/leap_se - - branches@varac/leap_se - - branches@micah/leap_se - - branches@elijah/leap_se - - branches@meskio/leap_se - - branches@drebs/leap_se - except: - - master production: image: 0xacab.org:4567/leap/docker/ruby:stretch_amd64 |