mirror of
https://github.com/RealOrangeOne/notes.git
synced 2024-12-22 13:16:22 +00:00
Add GitLab CI config
Doesn't deploy yet, let's get building working first
This commit is contained in:
parent
9f82abadb1
commit
77da59bea2
1 changed files with 25 additions and 0 deletions
25
.gitlab-ci.yml
Normal file
25
.gitlab-ci.yml
Normal 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
|
Loading…
Reference in a new issue