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.
23 lines
609 B
23 lines
609 B
2 years ago
|
pipeline:
|
||
|
build:
|
||
|
image: node:18-alpine
|
||
|
commands:
|
||
|
- npm install -g pnpm
|
||
|
- pnpm i
|
||
|
- echo "[values]\n_DEBUG=0\n_CORS_URL='https://cors.ruthenic.com/'" > options.toml
|
||
|
- pnpm build
|
||
|
when:
|
||
|
event: [ pull_request, push ]
|
||
|
publish:
|
||
|
image: alpine
|
||
|
secrets: [ ssh_key ]
|
||
|
commands:
|
||
|
- apk install git openssh
|
||
|
- mkdir ~/.ssh
|
||
|
- echo $ssh_key > ~/.ssh/id_ed25519
|
||
|
- ssh-add ~/.ssh/id_ed25519
|
||
|
- git config user.name "Woodpecker"
|
||
|
- git config user.email "no-reply@mail.ruthenic.com"
|
||
|
- git commit -am "Update build"
|
||
|
- git push
|