1
mirror of https://github.com/RealOrangeOne/notes.git synced 2024-07-01 09:53:53 +01:00
notes/.gitlab-ci.yml
Jake Howard 77da59bea2 Add GitLab CI config
Doesn't deploy yet, let's get building working first
2021-06-02 22:55:13 +00:00

26 lines
470 B
YAML

static:
image: node:alpine
stage: build
before_script:
- yarn install --cache-folder .yarn --prefer-offline --production --network-timeout 100000
script:
- npm run release
artifacts:
name: '$CI_JOB_ID'
paths:
- ./public
expire_in: 30 mins
deploy:
image: alpine
stage: deploy
dependencies:
- static
only:
- master
environment:
name: notes
url: https://notes.theorangeone.net
script:
- ls -alh ./public