131 lines
3.2 KiB
YAML
131 lines
3.2 KiB
YAML
pipeline:
|
|
build:wasmlib:
|
|
image: albedo.lan:5000/rust-upend:latest
|
|
pull: true
|
|
commands:
|
|
- rustc --version && cargo --version
|
|
- task build:wasmlib
|
|
# volumes:
|
|
# - rust_registry:/usr/local/cargo
|
|
|
|
build:backend:
|
|
group: build
|
|
image: albedo.lan:5000/rust-upend:latest
|
|
pull: true
|
|
commands:
|
|
- rustc --version && cargo --version
|
|
- task build:backend
|
|
# volumes:
|
|
# - rust_registry:/usr/local/cargo
|
|
|
|
build:frontend:
|
|
group: build
|
|
image: albedo.lan:5000/node-upend:latest
|
|
pull: true
|
|
commands:
|
|
- node --version && npm --version
|
|
- task build:frontend
|
|
|
|
lint:backend:
|
|
group: lint
|
|
image: albedo.lan:5000/rust-upend:latest
|
|
pull: true
|
|
commands:
|
|
- rustup component add clippy
|
|
- task lint:backend
|
|
- git status -vvv
|
|
# volumes:
|
|
# - rust_registry:/usr/local/cargo
|
|
when:
|
|
path:
|
|
- migrations/**/*
|
|
- /**/*.rs
|
|
- /**/Cargo.lock
|
|
- Taskfile.yml
|
|
|
|
lint:frontend:
|
|
group: lint
|
|
image: albedo.lan:5000/node-upend:latest
|
|
pull: true
|
|
commands:
|
|
- node --version && npm --version
|
|
- task lint:frontend
|
|
when:
|
|
path:
|
|
- webui/**/*
|
|
- Taskfile.yml
|
|
|
|
lint:jslib:
|
|
group: lint
|
|
image: albedo.lan:5000/node-upend:latest
|
|
pull: true
|
|
commands:
|
|
- node --version && npm --version
|
|
- task lint:jslib
|
|
when:
|
|
path:
|
|
- tools/upend_js/**/*
|
|
- Taskfile.yml
|
|
|
|
lint:webext:
|
|
group: lint
|
|
image: albedo.lan:5000/node-upend:latest
|
|
pull: true
|
|
commands:
|
|
- node --version && npm --version
|
|
- task lint:webext
|
|
when:
|
|
path:
|
|
- webext/**/*
|
|
- Taskfile.yml
|
|
|
|
test:backend:
|
|
group: test
|
|
image: albedo.lan:5000/rust-upend:latest
|
|
pull: true
|
|
commands:
|
|
- task test:backend
|
|
# volumes:
|
|
# - rust_registry:/usr/local/cargo
|
|
|
|
package:
|
|
image: albedo.lan:5000/upend-deploy:latest
|
|
pull: true
|
|
commands:
|
|
- mkdir .ci_tmp && cd ./.ci_tmp
|
|
- wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
|
|
- chmod +x linuxdeploy-x86_64.AppImage
|
|
- ./linuxdeploy-x86_64.AppImage --appimage-extract
|
|
- ln -s $PWD/squashfs-root/AppRun /usr/local/bin/linuxdeploy-x86_64.AppImage
|
|
- cd -
|
|
- git status -vvv
|
|
- task package
|
|
|
|
publish-nightly:
|
|
image: albedo.lan:5000/upend-deploy:latest
|
|
pull: true
|
|
commands:
|
|
- echo -e "$GPG_SIGN_KEY" | gpg --import
|
|
- gpg --clear-sign "*.AppImage"
|
|
- mkdir -p $HOME/.ssh
|
|
- echo -e "$SSH_CONFIG" > $HOME/.ssh/config
|
|
- echo -e "$SSH_UPLOAD_KEY" > $HOME/.ssh/id_rsa
|
|
- echo -e "$SSH_KNOWN_HOSTS" > $HOME/.ssh/known_hosts
|
|
- chmod 600 $HOME/.ssh/*
|
|
- scp "*.AppImage" "*.asc" mainsite:releases
|
|
secrets: [gpg_sign_key, ssh_config, ssh_upload_key, ssh_known_hosts]
|
|
|
|
publish:
|
|
image: woodpeckerci/plugin-gitea-release
|
|
settings:
|
|
base_url: https://git.thm.place
|
|
files:
|
|
- "*.AppImage"
|
|
- "*.asc"
|
|
- webext/web-ext-artifacts/*.zip
|
|
checksum: sha512
|
|
api_key:
|
|
from_secret: woodpecker_api_key
|
|
target: main
|
|
when:
|
|
event: [tag]
|