Files
website/.gitlab-ci.yml
T

26 lines
640 B
YAML

image: node
before_script:
# install ssh-agent
- 'which npm || ( apt-get update -y && apt-get install node -y )'
pages:
stage: deploy
script:
- export SALT="salt_and_pepper"
- export KEY="qwerty"
- export PLAYER_LIST_LOCATION="api/players.json.spritz"
- ssh-keyscan -t rsa gitlab.com >> ~/.ssh/known_hosts
- 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
- mv .public public
artifacts:
paths:
- public
only:
- master