41 lines
787 B
YAML
41 lines
787 B
YAML
|
kind: pipeline
|
||
|
name: build
|
||
|
|
||
|
trigger:
|
||
|
branch:
|
||
|
- master
|
||
|
event:
|
||
|
- push
|
||
|
|
||
|
steps:
|
||
|
- name: build
|
||
|
image: node:12
|
||
|
pull: true
|
||
|
group: build-static
|
||
|
commands:
|
||
|
- yarn --production=false
|
||
|
- yarn build
|
||
|
|
||
|
- name: static
|
||
|
image: kolaente/zip
|
||
|
pull: true
|
||
|
commands:
|
||
|
- zip -r vikunja-theme.zip archetypes/ layouts/ static/ theme.toml
|
||
|
depends_on: [ build ]
|
||
|
|
||
|
- 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
|
||
|
source: vikunja-theme.zip
|
||
|
target: /theme/
|
||
|
depends_on: [ static ]
|