Commit 7ae41a88 authored by Arman Khalatyan's avatar Arman Khalatyan
Browse files

Update .gitlab-ci.yml

parent a18dc7a7
Pipeline #1150 passed with stages
in 6 minutes and 19 seconds
......@@ -43,7 +43,8 @@ test1:
script:
- "oc get services $APP 2> /dev/null || oc new-app . --name=$APP --strategy=docker"
- "oc start-build $APP --from-dir=. --follow || sleep 3s && oc start-build $APP --from-dir=. --follow"
- "oc get routes $APP 2> /dev/null || oc expose service $APP --hostname=$APP_HOST"
- "oc get routes $APP 2> /dev/null || oc create route edge $APP --service $APP --insecure-policy Redirect"
#oc expose service $APP --hostname=$APP_HOST"
review:
<<: *deploy
......@@ -53,7 +54,7 @@ review:
APP_HOST: $CI_PROJECT_NAME-$CI_ENVIRONMENT_SLUG.$OPENSHIFT_DOMAIN
environment:
name: review/$CI_COMMIT_REF_NAME
url: http://$CI_PROJECT_NAME-$CI_ENVIRONMENT_SLUG.$OPENSHIFT_DOMAIN
url: https://$CI_PROJECT_NAME-$CI_ENVIRONMENT_SLUG.$OPENSHIFT_DOMAIN
on_stop: stop-review
only:
- branches
......@@ -85,7 +86,7 @@ staging:
APP_HOST: $CI_PROJECT_NAME-staging.$OPENSHIFT_DOMAIN
environment:
name: staging
url: http://$CI_PROJECT_NAME-staging.$OPENSHIFT_DOMAIN
url: https://$CI_PROJECT_NAME-staging.$OPENSHIFT_DOMAIN
only:
- master
......@@ -98,6 +99,6 @@ production:
when: manual
environment:
name: production
url: http://$CI_PROJECT_NAME.$OPENSHIFT_DOMAIN
url: https://$CI_PROJECT_NAME.$OPENSHIFT_DOMAIN
only:
- master
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