Update .gitlab-ci.yml
This commit is contained in:
parent
7bc19171f1
commit
c1cd5f0001
@ -43,8 +43,7 @@ push tag:
|
||||
script:
|
||||
- docker pull $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
|
||||
- docker tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
|
||||
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
|
||||
REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
|
||||
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
|
||||
|
||||
# Docker Deploy
|
||||
# Not currently in use, here for posterity.
|
||||
@ -70,16 +69,16 @@ REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
|
||||
# Helm Deploy
|
||||
# Currently in use, works with *Magic*
|
||||
deploy:
|
||||
stage: deploy
|
||||
image:
|
||||
stage: deploy
|
||||
image:
|
||||
name: alpine/helm:latest
|
||||
entrypoint: [""]
|
||||
script:
|
||||
script:
|
||||
- helm upgrade
|
||||
--install
|
||||
--wait
|
||||
--set image.tag=${CI_COMMIT_SHA}
|
||||
simple-blog-api-${CI_COMMIT_REF_SLUG}
|
||||
devops/simple-blog-api
|
||||
environment:
|
||||
--install
|
||||
--wait
|
||||
--set image.tag=${CI_COMMIT_SHA}
|
||||
simple-blog-api-${CI_COMMIT_REF_SLUG}
|
||||
devops/simple-blog-api
|
||||
environment:
|
||||
name: production
|
||||
Reference in New Issue
Block a user