61 lines
1.2 KiB
YAML
61 lines
1.2 KiB
YAML
kind: pipeline
|
|
name: build
|
|
|
|
trigger:
|
|
event:
|
|
- push
|
|
|
|
steps:
|
|
- name: build
|
|
image: node:16
|
|
pull: true
|
|
group: build-static
|
|
commands:
|
|
- yarn --frozen-lockfile
|
|
- yarn prod
|
|
- yarn clean
|
|
- yarn release
|
|
|
|
- name: release
|
|
image: plugins/s3:1
|
|
pull: true
|
|
settings:
|
|
bucket: vikunja-releases
|
|
access_key:
|
|
from_secret: aws_access_key_id
|
|
secret_key:
|
|
from_secret: aws_secret_access_key
|
|
endpoint: https://s3.fr-par.scw.cloud
|
|
region: fr-par
|
|
path_style: true
|
|
strip_prefix: dist/
|
|
source: dist/vikunja-theme.tar.gz
|
|
target: /theme/
|
|
when:
|
|
event: [push]
|
|
branch: [main]
|
|
---
|
|
kind: pipeline
|
|
name: trigger-website-update
|
|
|
|
trigger:
|
|
branch:
|
|
- main
|
|
event:
|
|
- push
|
|
|
|
depends_on:
|
|
- build
|
|
|
|
steps:
|
|
- name: trigger
|
|
image: plugins/downstream
|
|
settings:
|
|
server: https://drone.kolaente.de
|
|
token:
|
|
from_secret: drone_token
|
|
repositories:
|
|
- vikunja/website@main
|
|
- vikunja/blog@main
|
|
- vikunja/api@main
|