1
Fork 0
mirror of https://github.com/RealOrangeOne/notes.git synced 2024-11-16 21:59:03 +00:00
notes/.gitlab-ci.yml

38 lines
705 B
YAML
Raw Normal View History

2021-06-26 20:59:23 +01:00
stages:
- build
- deploy
static:
image: node:alpine
stage: build
2021-06-03 17:11:36 +01:00
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- .yarn
- .cache
before_script:
- yarn install --cache-folder .yarn --prefer-offline --production --network-timeout 100000
script:
2021-06-02 23:58:17 +01:00
- npm run build
artifacts:
name: '$CI_JOB_ID'
paths:
- ./public
expire_in: 30 mins
deploy:
2021-06-26 20:59:23 +01:00
image: dokku/ci-docker-image:latest
stage: deploy
only:
- master
environment:
name: notes
url: https://notes.theorangeone.net
2021-06-03 08:29:44 +01:00
variables:
2021-06-26 20:59:23 +01:00
GIT_REMOTE_URL: ssh://dokku@d.theorangeone.net:7743/notes
GIT_PUSH_FLAGS: --force
script:
- dokku-deploy
after_script:
- dokku-unlock