You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

54 lines
978 B

---
kind: pipeline
type: docker
name: default
clone:
depth: 1
steps:
- name: installDependencies
image: node:lts
commands:
- npm ci
- name: build
image: node:lts
commands:
- npm run build
- tar -czf legacy.tar.gz ./dist/*
- npm run build -- --modern
- tar -czf morden.tar.gz ./dist/*
- name: release
image: plugins/gitea-release
settings:
base_url: https://git.ixarea.com
files:
- morden.tar.gz
- legacy.tar.gz
api_key:
from_secret: gitea_token
checksum:
- sha256
when:
event: [tag]
- name: deploy
image: plugins/s3
settings:
bucket: unlock-music
access_key:
from_secret: aws_access_key_id
secret_key:
from_secret: aws_secret_access_key
source: dist/**/*
target: /
path_style: true
endpoint: https://fs.sz2.ixarea.com
volumes:
- name: cache
host:
path: /tmp/cache