Skip to content
Snippets Groups Projects
Unverified Commit ec7d6ecb authored by Kamil Trzcinski's avatar Kamil Trzcinski
Browse files

Update templates to use `CI_COMMIT_REF_NAME` as this is correct and remove...

Update templates to use `CI_COMMIT_REF_NAME` as this is correct and remove `CI_ENVIRONMENT_URL` as this is currently read by auto-deploy.
parent 24381d16
No related branches found
No related tags found
1 merge request!71Update auto-deploy templates
Pipeline #
Loading
Loading
@@ -41,7 +41,7 @@ review:
APP: $CI_COMMIT_REF_NAME
APP_HOST: $CI_PROJECT_NAME-$CI_ENVIRONMENT_SLUG.$OPENSHIFT_DOMAIN
environment:
name: review/$CI_COMMIT_REF_SLUG
name: review/$CI_COMMIT_REF_NAME
  • Mark Pundsack @markpundsack ·
    Developer

    I still argue you want SLUG here instead of NAME because of the implied foldering a slash provides.

  • Please register or sign in to reply
url: http://$CI_PROJECT_NAME-$CI_ENVIRONMENT_SLUG.$OPENSHIFT_DOMAIN
on_stop: stop-review
only:
Loading
Loading
@@ -59,7 +59,7 @@ stop-review:
APP: $CI_COMMIT_REF_NAME
GIT_STRATEGY: none
environment:
name: review/$CI_COMMIT_REF_SLUG
name: review/$CI_COMMIT_REF_NAME
action: stop
only:
- branches
Loading
Loading
Loading
Loading
@@ -59,7 +59,7 @@ review:
script:
- command deploy
environment:
name: review/$CI_COMMIT_REF_SLUG
name: review/$CI_COMMIT_REF_NAME
url: http://$CI_PROJECT_NAME-$CI_ENVIRONMENT_SLUG.$KUBE_DOMAIN
on_stop: stop_review
only:
Loading
Loading
@@ -74,7 +74,7 @@ stop_review:
script:
- command destroy
environment:
name: review/$CI_COMMIT_REF_SLUG
name: review/$CI_COMMIT_REF_NAME
action: stop
when: manual
allow_failure: true
Loading
Loading
Loading
Loading
@@ -23,8 +23,6 @@ build:
 
production:
stage: production
variables:
CI_ENVIRONMENT_URL: http://$CI_PROJECT_NAME.$KUBE_DOMAIN
script:
- command deploy
environment:
Loading
Loading
@@ -36,8 +34,6 @@ production:
 
staging:
stage: staging
variables:
CI_ENVIRONMENT_URL: http://$CI_PROJECT_NAME-staging.$KUBE_DOMAIN
script:
- command deploy
environment:
Loading
Loading
@@ -48,12 +44,10 @@ staging:
 
review:
stage: review
variables:
CI_ENVIRONMENT_URL: http://$CI_PROJECT_NAME-$CI_ENVIRONMENT_SLUG.$KUBE_DOMAIN
script:
- command deploy
environment:
name: review/$CI_COMMIT_REF_SLUG
name: review/$CI_COMMIT_REF_NAME
url: http://$CI_PROJECT_NAME-$CI_ENVIRONMENT_SLUG.$KUBE_DOMAIN
on_stop: stop_review
only:
Loading
Loading
@@ -68,7 +62,7 @@ stop_review:
script:
- command destroy
environment:
name: review/$CI_COMMIT_REF_SLUG
name: review/$CI_COMMIT_REF_NAME
action: stop
when: manual
only:
Loading
Loading
Loading
Loading
@@ -53,7 +53,7 @@ review:
script:
- command deploy
environment:
name: review/$CI_COMMIT_REF_SLUG
name: review/$CI_COMMIT_REF_NAME
url: http://$CI_PROJECT_NAME-$CI_ENVIRONMENT_SLUG.$KUBE_DOMAIN
on_stop: stop_review
only:
Loading
Loading
@@ -68,7 +68,7 @@ stop_review:
script:
- command destroy
environment:
name: review/$CI_COMMIT_REF_SLUG
name: review/$CI_COMMIT_REF_NAME
action: stop
when: manual
only:
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment