Skip to content
Snippets Groups Projects
Commit 82200448 authored by Anton Akhmerov's avatar Anton Akhmerov
Browse files

Merge branch 'master' into local

parents 02154ffe 52925244
Branches
No related tags found
2 merge requests!65Crystal structure changes,!16WIP: exercises lecture 7 (Tight-Binding)
Pipeline #14267 passed
image: quantumtinkerer/research image: quantumtinkerer/research
build and upload the contents: stages:
- build
- deploy
build lectures:
stage: build
before_script:
- pip install -U mkdocs mkdocs-material python-markdown-math notedown
script:
- python execute.py
- mkdocs build
artifacts:
paths:
- site
expire_in: 1 week
.prepare_deploy: &prepare_deploy
stage: deploy
only:
- branches@solidstate/lectures
before_script: before_script:
## Install ssh-agent if not already installed, it is required by Docker. ## Install ssh-agent if not already installed, it is required by Docker.
## (change apt-get to yum if you use an RPM-based image) ## (change apt-get to yum if you use an RPM-based image)
...@@ -20,12 +39,40 @@ build and upload the contents: ...@@ -20,12 +39,40 @@ build and upload the contents:
- chmod 700 ~/.ssh - chmod 700 ~/.ssh
- ssh-keyscan tnw-tn1.tudelft.net >> ~/.ssh/known_hosts - ssh-keyscan tnw-tn1.tudelft.net >> ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts - chmod 644 ~/.ssh/known_hosts
- pip install -U mkdocs mkdocs-material python-markdown-math notedown
script: script:
# Compile lectures - "rsync -rv site/* solidstate@tnw-tn1.tudelft.net:$DEPLOY_PATH"
- python execute.py
- mkdocs build deploy delft version:
- "rsync -rv site/* solidstate@tnw-tn1.tudelft.net:" <<: *prepare_deploy
only: only:
- local@solidstate/lectures - local@solidstate/lectures
variables:
DEPLOY_PATH: ""
environment:
name: $CI_COMMIT_REF_NAME
url: "https://solidstate.quantumtinkerer.tudelft.nl/"
deploy test version:
<<: *prepare_deploy
except:
- local@solidstate/lectures
variables:
DEPLOY_PATH: "test_builds/$CI_COMMIT_REF_NAME"
environment:
name: $CI_COMMIT_REF_NAME
url: "https://solidstate.quantumtinkerer.tudelft.nl/test_builds/$CI_COMMIT_REF_NAME"
on_stop: undeploy test version
undeploy test version:
<<: *prepare_deploy
except:
- local@solidstate/lectures
when: manual
variables:
DEPLOY_PATH: "test_builds/$CI_COMMIT_REF_NAME"
script:
- mkdir empty/
- "rsync -rlv --delete empty/ solidstate@tnw-tn1.tudelft.net:$DEPLOY_PATH"
environment:
name: $CI_COMMIT_REF_NAME
action: stop
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment