-
François Agneray authoredFrançois Agneray authored
.gitlab-ci.yml 978 B
stages:
- build
- dockerize
- deploy
build:
image: python:3.9
stage: build
cache: {}
script:
- pip install mkdocs
- mkdocs build --clean
artifacts:
paths:
- site
only:
refs:
- master
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
only:
refs:
- master
deploy:
image: alpine
stage: deploy
variables:
GIT_STRATEGY: none
cache: {}
dependencies: []
script:
- apk add --update curl
- curl -XPOST $DEV_WEBHOOK
only:
refs:
- master