2022-11-24 17:25:46 +01:00
|
|
|
image: node:current-alpine3.15
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- test
|
|
|
|
- deploy
|
|
|
|
|
2023-07-06 21:02:56 +02:00
|
|
|
# test:
|
|
|
|
# stage: test
|
|
|
|
# script:
|
|
|
|
# - yarn install
|
|
|
|
# - URL=http://localhost BASE_URL=/ yarn build
|
|
|
|
# except:
|
|
|
|
# - main
|
|
|
|
# # tags:
|
|
|
|
# # - shared-fi
|
2022-11-24 17:25:46 +01:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
stage: deploy
|
|
|
|
script:
|
|
|
|
- mkdir -p ~/.ssh
|
|
|
|
- ln -s $SSH_CONFIG ~/.ssh/config
|
|
|
|
- ln -s $SSH_KEY ~/.ssh/id_ed25519
|
|
|
|
- ln -s $SSH_KNOWN_HOSTS ~/.ssh/known_hosts
|
|
|
|
- chmod 600 ~/.ssh/config ~/.ssh/id_ed25519 ~/.ssh/known_hosts
|
|
|
|
- apk update && apk add make graphviz zip openssh rsync
|
|
|
|
- yarn install
|
|
|
|
- make regenerate-dots
|
|
|
|
- make regenerate-zips
|
|
|
|
- make deploy-aisa
|
|
|
|
- make deploy-poincare
|
|
|
|
only:
|
|
|
|
- main
|
2023-06-24 23:50:24 +02:00
|
|
|
# tags:
|
|
|
|
# - shared-fi
|