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