frontend/.drone.yml

67 lines
1.3 KiB
YAML
Raw Normal View History

2018-09-08 15:44:29 +00:00
workspace:
base: /srv/app
clone:
git:
image: plugins/git
depth: 50
tags: true
2018-09-08 15:45:01 +00:00
pipeline:
2018-09-08 15:44:29 +00:00
build:
image: node
pull: true
group: build-static
commands:
- npm install
- npm run lint
- npm run build
when:
event: [push, tag, pull_request]
static:
image: karalabe/xgo-latest:latest
pull: true
commands:
- cd dist
- zip -r ../vikunja-frontend-${DRONE_TAG##v}.zip *
2018-09-08 15:44:29 +00:00
- cd ..
when:
event: [tag]
static:
image: karalabe/xgo-latest:latest
pull: true
commands:
- cd dist
- zip -r ../vikunja-frontend-master.zip *
- cd ..
when:
event: [push]
branch: [ master ]
2018-09-08 15:44:29 +00:00
# Push the releases to our pseudo-s3-bucket
release:
image: plugins/s3:1
pull: true
secrets: [ aws_access_key_id, aws_secret_access_key ]
bucket: vikunja-frontend
2018-09-08 15:44:29 +00:00
endpoint: https://storage.kolaente.de
path_style: true
source: vikunja-frontend-${DRONE_TAG##v}.zip
2018-09-08 15:44:29 +00:00
when:
event: [ tag ]
release:
image: plugins/s3:1
pull: true
secrets: [ aws_access_key_id, aws_secret_access_key ]
bucket: vikunja-frontend
2018-09-08 15:44:29 +00:00
endpoint: https://storage.kolaente.de
path_style: true
source: vikunja-frontend-master.zip
2018-09-08 15:44:29 +00:00
when:
event: [ push ]
branch: [ master ]