Skip to content

Commit b1ee25f

Browse files
committed
Use environment tag on gitlab ci for app
1 parent 6aa479e commit b1ee25f

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.gitlab/ci/deploy_app.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@
1818
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 $ENVIRONMENT
21+
- crane tag $CI_REGISTRY_IMAGE/app:$CI_COMMIT_SHA $CI_ENVIRONMENT_NAME
2222
needs:
2323
- job: app-web-image
2424
artifacts: false
2525

2626
app-deploy-image-staging:
2727
extends: .app-deploy-image
28-
variables:
29-
ENVIRONMENT: staging
28+
environment:
29+
name: staging
3030

3131
app-deploy-image-production:
3232
extends: .app-deploy-image
3333
when: manual
34-
variables:
35-
ENVIRONMENT: production
34+
environment:
35+
name: production
3636

3737
###############################
3838
# Rolling restart on Manifest #

0 commit comments

Comments
 (0)