Commit 407de2f4 authored by Guillaume REMBERT's avatar Guillaume REMBERT

Update gitlab-ci.yml

parent cb543f39
Pipeline #6 failed with stages
...@@ -45,8 +45,8 @@ codequality: ...@@ -45,8 +45,8 @@ codequality:
paths: [codeclimate.json] paths: [codeclimate.json]
.deploy: &deploy .deploy: &deploy
before_script:
script: script:
- echo deploy
review: review:
<<: *deploy <<: *deploy
...@@ -54,6 +54,8 @@ review: ...@@ -54,6 +54,8 @@ review:
variables: variables:
APP: review-$CI_COMMIT_REF_NAME APP: review-$CI_COMMIT_REF_NAME
APP_HOST: $CI_PROJECT_NAME-$CI_ENVIRONMENT_SLUG.$EURYSPACE_DOMAIN APP_HOST: $CI_PROJECT_NAME-$CI_ENVIRONMENT_SLUG.$EURYSPACE_DOMAIN
script:
- echo review
environment: environment:
name: review/$CI_COMMIT_REF_NAME name: review/$CI_COMMIT_REF_NAME
url: https://$CI_PROJECT_NAME-$CI_ENVIRONMENT_SLUG.$EURYSPACE_DOMAIN url: https://$CI_PROJECT_NAME-$CI_ENVIRONMENT_SLUG.$EURYSPACE_DOMAIN
...@@ -66,6 +68,8 @@ review: ...@@ -66,6 +68,8 @@ review:
stop-review: stop-review:
<<: *deploy <<: *deploy
stage: cleanup stage: cleanup
script:
- echo cleanup
when: manual when: manual
variables: variables:
APP: review-$CI_COMMIT_REF_NAME APP: review-$CI_COMMIT_REF_NAME
...@@ -81,6 +85,8 @@ stop-review: ...@@ -81,6 +85,8 @@ stop-review:
staging: staging:
<<: *deploy <<: *deploy
stage: staging stage: staging
script:
- echo staging
variables: variables:
APP: staging APP: staging
APP_HOST: $CI_PROJECT_NAME-staging.$EURYSPACE_DOMAIN APP_HOST: $CI_PROJECT_NAME-staging.$EURYSPACE_DOMAIN
...@@ -93,6 +99,8 @@ staging: ...@@ -93,6 +99,8 @@ staging:
production: production:
<<: *deploy <<: *deploy
stage: production stage: production
script:
- echo production
variables: variables:
APP: production APP: production
APP_HOST: $CI_PROJECT_NAME.$EURYSPACE_DOMAIN APP_HOST: $CI_PROJECT_NAME.$EURYSPACE_DOMAIN
......
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