Files
website/.gitlab-ci.yml
2021-06-15 12:50:49 -04:00

30 lines
745 B
YAML

image: "node:12.22.1"
before_script:
# install ssh-agent
- 'which npm || ( apt-get update -y && apt-get install node -y )'
pages:
stage: deploy
cache:
paths:
- node_modules/
- lib/
script:
- export SALT="salt_and_pepper"
- export KEY="qwerty"
- export PLAYER_LIST_LOCATION="//ballephenix.gitlab.io/private/players.spritz.js"
- npm install
- node_modules/.bin/gulp prod
- node_modules/.bin/r.js -o build.js
- rm -rf node_modules .public public
- mkdir .public
- cp -r * .public
- cp -r .well-known .public # for let's encrypt
- mv .public public
artifacts:
paths:
- public
only:
- master