Added Portainer Update gitlab-ci.yml

This commit is contained in:
Matthew McKinnon 2022-08-07 18:10:55 +10:00
parent 1a0c3d18de
commit 99dad158f6

View File

@ -6,6 +6,7 @@ stages:
- eleventy - eleventy
- docker_build - docker_build
- docker_deploy - docker_deploy
- portainer_update
eleventy: eleventy:
stage: eleventy stage: eleventy
@ -35,10 +36,17 @@ 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
- CURL -X POST $PORTAINER_UPDATE
only: only:
- master - master
portainer_update:
stage: portainer_update
image: curlimages/curl
script:
- CURL -X POST $PORTAINER_UPDATE
only:
- master