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