Added Portainer Update gitlab-ci.yml
This commit is contained in:
parent
1a0c3d18de
commit
99dad158f6
@ -6,6 +6,7 @@ stages:
|
||||
- eleventy
|
||||
- docker_build
|
||||
- docker_deploy
|
||||
- portainer_update
|
||||
|
||||
eleventy:
|
||||
stage: eleventy
|
||||
@ -35,6 +36,13 @@ docker_build:
|
||||
- docker tag $IMAGE_TAG $IMAGE_TAG_LATEST
|
||||
- docker push $IMAGE_TAG_LATEST
|
||||
- docker rmi $IMAGE_TAG $IMAGE_TAG_LATEST
|
||||
only:
|
||||
- master
|
||||
|
||||
portainer_update:
|
||||
stage: portainer_update
|
||||
image: curlimages/curl
|
||||
script:
|
||||
- CURL -X POST $PORTAINER_UPDATE
|
||||
only:
|
||||
- master
|
||||
|
Loading…
Reference in New Issue
Block a user