1
Fork 0
mirror of https://github.com/RealOrangeOne/notes.git synced 2024-12-22 17:55:58 +00:00

Add GitLab CI config

Doesn't deploy yet, let's get building working first
This commit is contained in:
Jake Howard 2021-06-02 22:55:13 +00:00
parent 9f82abadb1
commit 77da59bea2

25
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,25 @@
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