Commit feb9343d authored by elmar's avatar elmar
Browse files

migrate to gitlab pages

parent 1fb825f4
default:
image: node:latest
image: node:latest
stages:
- build
- test
- deploy
build:
stage: build
test:
stage: test
script:
- sed -i '11s/\//\.\//' docusaurus.config.js
- yarn install
- yarn build
artifacts:
paths:
- build
rules:
- if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH
prod-deploy-job:
pages:
stage: deploy
image: hub.ilearned.eu/i-learned/ci-cd/website-builder
script:
- eval $(ssh-agent -s)
- mkdir -p ~/.ssh
- echo "$SSH_KEY" > ~/.ssh/id_ed25519
- chmod 600 ~/.ssh/id_ed25519
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
- rsync -az --exclude=".git*" --delete -e "ssh -p 53453 -i ~/.ssh/id_ed25519" build/ ci@web.ramle.be:/var/www/wiki.ilearned.eu
only:
- main
- yarn install
- yarn build
artifacts:
paths:
- public
dependencies:
- test
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
\ No newline at end of file
......@@ -32810,7 +32810,7 @@
},
"plugin-image-zoom": {
"version": "git+ssh://git@github.com/flexanalytics/plugin-image-zoom.git#86f6f0b4f927ded94dcfdc18c0a9ee702ffd8d06",
"from": "plugin-image-zoom@flexanalytics/plugin-image-zoom",
"from": "plugin-image-zoom@github:flexanalytics/plugin-image-zoom",
"requires": {
"medium-zoom": "^1.0.4"
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment