Skip to content
Snippets Groups Projects

add publishing steps for both prod VMs

Merged Karel van Klink requested to merge feature/add-publishing into develop
Files
2
+ 37
1
@@ -31,7 +31,7 @@ lint-documentation:
tags:
- docker-executor
needs:
- job: build-documentation # Only run when documentation has been built
- job: build-documentation # Only run when documentation has been built
artifacts: true
before_script:
@@ -40,3 +40,39 @@ lint-documentation:
script:
- vale $CI_PROJECT_DIR/docs/build/html/_sources
##### Publish documentation artefacts
publish-prod-2:
stage: publish-prod-2
# First deploy to prod-2
tags:
- gap-docs-prod-2
only:
refs:
- main # Only publish when on the main branch
needs:
- job: lint-documentation
artifacts: true
script:
- rm -r /var/www/gap-docs/*
- mv $CI_PROJECT_DIR/docs/build/html/* /var/www/gap-docs/
publish-prod-1:
stage: publish-prod-1
# When successful, also deploy to prod-1
tags:
- gap-docs-prod-1
only:
refs:
- main # Only publish when on the main branch
needs:
- job: lint-documentation
artifacts: true
script:
- rm -r /var/www/gap-docs/*
- mv $CI_PROJECT_DIR/docs/build/html/* /var/www/gap-docs/
Loading