1
mirror of https://github.com/RealOrangeOne/notes.git synced 2024-07-01 09:53:53 +01:00
notes/.gitlab-ci.yml

38 lines
652 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:
- .npm
2021-06-03 17:11:36 +01:00
- .cache
before_script:
- npm ci --cache .npm --prefer-offline
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