Fixed CI CD pipeline
This commit is contained in:
parent
2c66e93563
commit
1f2352f696
@ -20,7 +20,7 @@ eleventy:
|
||||
paths:
|
||||
- _site/
|
||||
only:
|
||||
- tags
|
||||
- master
|
||||
|
||||
docker_build:
|
||||
before_script:
|
||||
@ -35,21 +35,9 @@ docker_build:
|
||||
- docker tag $IMAGE_TAG $IMAGE_TAG_LATEST
|
||||
- docker push $IMAGE_TAG_LATEST
|
||||
- docker rmi $IMAGE_TAG $IMAGE_TAG_LATEST
|
||||
- CURL -X POST $PORTAINER_UPDATE
|
||||
only:
|
||||
- tags
|
||||
|
||||
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
|
||||
|
||||
- master
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user