stages: - build - dockerize - deploy build: image: python:3.9 stage: build cache: {} script: - pip install mkdocs - mkdocs build --clean artifacts: paths: - site dockerize: image: docker:stable stage: dockerize cache: {} script: - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker pull $CI_REGISTRY/anis/anis-doc/doc:latest || true - docker build --cache-from $CI_REGISTRY/anis/anis-doc/doc:latest -t $CI_REGISTRY/anis/anis-doc/doc:latest . - docker push $CI_REGISTRY/anis/anis-doc/doc:latest deploy: image: alpine stage: deploy variables: GIT_STRATEGY: none cache: {} dependencies: [] script: - apk add --update curl - curl -XPOST $DEV_WEBHOOK