File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 stage : deploy
1616 image :
1717 name : gcr.io/go-containerregistry/crane:debug
18- entrypoint : ['' ]
18+ entrypoint : ["" ]
1919 script :
2020 - crane auth login $CI_REGISTRY -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD
21- - crane tag $CI_REGISTRY_IMAGE/app:$CI_COMMIT_SHA $CI_ENVIRONMENT_NAME
21+ - ENVIRONMENT_TAG="${CI_ENVIRONMENT_NAME%%/*}"
22+ - crane tag $CI_REGISTRY_IMAGE/app:$CI_COMMIT_SHA $ENVIRONMENT_TAG
2223 needs :
2324 - job : app-web-image
2425 artifacts : false
2526
2627app-deploy-image-staging :
2728 extends : .app-deploy-image
2829 environment :
29- name : staging
30+ name : staging/app
3031
3132app-deploy-image-production :
3233 extends : .app-deploy-image
3334 when : manual
3435 environment :
35- name : production
36+ name : production/app
3637
3738# ##############################
3839# Rolling restart on Manifest #
@@ -47,7 +48,7 @@ app-deploy-image-production:
4748 strategy : depend
4849 variables :
4950 MANIFEST_SETUP_COMMAND : quick
50- MANIFEST_STAGGER_TIME : ' 10 '
51+ MANIFEST_STAGGER_TIME : " 10 "
5152
5253app-deploy-manifest-staging :
5354 extends : .app-deploy-manifest
Original file line number Diff line number Diff line change 55 entrypoint : ['']
66 script :
77 - crane auth login $CI_REGISTRY -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD
8- - crane tag $CI_REGISTRY_IMAGE/${SERVICE_NAME}:$CI_COMMIT_SHA $ENVIRONMENT
8+ - ENVIRONMENT_TAG="${CI_ENVIRONMENT_NAME%%/*}"
9+ - crane tag $CI_REGISTRY_IMAGE/${SERVICE_NAME}:$CI_COMMIT_SHA $ENVIRONMENT_TAG
910
1011.service-deploy-manifest :
1112 stage : deploy
4647
4748server-deploy-image-staging :
4849 extends : .server-deploy-image
49- variables :
50- ENVIRONMENT : staging
50+ environment :
51+ name : staging/server
5152
5253server-deploy-image-production :
5354 extends : .server-deploy-image
5455 when : manual
55- variables :
56- ENVIRONMENT : production
56+ environment :
57+ name : production/server
5758
5859# ##############################
5960# Rolling restart on Manifest #
@@ -101,8 +102,8 @@ moderation-deploy-image-production:
101102 - .moderation-deploy-workflow
102103 - .service-deploy-image
103104 when : manual
104- variables :
105- ENVIRONMENT : production
105+ environment :
106+ name : production/moderation-service
106107 needs :
107108 - job : moderation-image
108109 artifacts : false
@@ -144,8 +145,8 @@ notifications-deploy-image-production:
144145 - .notifications-deploy-workflow
145146 - .service-deploy-image
146147 when : manual
147- variables :
148- ENVIRONMENT : production
148+ environment :
149+ name : production/notifications-service
149150 needs :
150151 - job : notifications-image
151152 artifacts : false
You can’t perform that action at this time.
0 commit comments