Fixed CI CD pipeline

This commit is contained in:
Matthew McKinnon 2022-08-07 18:01:27 +10:00
parent 2c66e93563
commit 1f2352f696

View File

@ -20,7 +20,7 @@ eleventy:
paths: paths:
- _site/ - _site/
only: only:
- tags - master
docker_build: docker_build:
before_script: before_script:
@ -35,21 +35,9 @@ 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:
- tags - master
docker_deploy:
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
services:
- docker:dind
stage: docker_build
image: docker:latest
script:
- docker pull $IMAGE_TAG_LATEST
only:
- tags