mirror of
https://github.com/TeachBooks/manual.git
synced 2026-11-12 22:35:51 +00:00
Merge branch 'main' into 'publish'
Add deploy stage See merge request interactivetextbooks-citg/jupyter-book-manual!24
This commit is contained in:
commit
ca482f281b
1 changed files with 12 additions and 0 deletions
|
|
@ -59,3 +59,15 @@ build-container:
|
|||
- docker build -t $TAG_COMMIT -t $TAG_LATEST .
|
||||
- docker push $TAG_COMMIT
|
||||
- docker push $TAG_LATEST
|
||||
|
||||
update-website:
|
||||
image: docker
|
||||
stage: deploy
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == "publish" && $CI_PIPELINE_SOURCE == "push"
|
||||
script:
|
||||
- docker-compose pull $CI_PROJECT_NAME
|
||||
- docker-compose up -d
|
||||
environment:
|
||||
name: production
|
||||
url: https://interactivetextbooks.citg.tudelft.nl/
|
||||
Loading…
Add table
Add a link
Reference in a new issue