2023-06-03 11:58:13 +02:00
|
|
|
pipeline:
|
2023-07-12 12:12:47 +02:00
|
|
|
build:wasmlib:
|
|
|
|
image: albedo.lan:5000/rust-upend:latest
|
|
|
|
commands:
|
|
|
|
- rustc --version && cargo --version
|
|
|
|
- task build:wasmlib
|
|
|
|
# volumes:
|
|
|
|
# - rust_registry:/usr/local/cargo
|
|
|
|
when:
|
|
|
|
path:
|
|
|
|
- webui/**/*
|
|
|
|
- /**/*.rs
|
|
|
|
- /**/Cargo.lock
|
|
|
|
- Taskfile.yml
|
|
|
|
|
2023-06-03 11:58:13 +02:00
|
|
|
build:backend:
|
|
|
|
group: build
|
2023-07-11 20:55:28 +02:00
|
|
|
image: albedo.lan:5000/rust-upend:latest
|
2023-06-03 11:58:13 +02:00
|
|
|
commands:
|
|
|
|
- rustc --version && cargo --version
|
2023-07-11 19:46:31 +02:00
|
|
|
- task build:backend
|
2023-06-03 11:58:13 +02:00
|
|
|
# volumes:
|
|
|
|
# - rust_registry:/usr/local/cargo
|
|
|
|
when:
|
2023-06-10 16:03:30 +02:00
|
|
|
path:
|
|
|
|
- migrations/**/*
|
|
|
|
- /**/*.rs
|
|
|
|
- /**/Cargo.lock
|
|
|
|
- Taskfile.yml
|
2023-06-03 11:58:13 +02:00
|
|
|
|
|
|
|
build:frontend:
|
|
|
|
group: build
|
2023-07-11 21:07:50 +02:00
|
|
|
image: albedo.lan:5000/node-upend:latest
|
2023-06-03 11:58:13 +02:00
|
|
|
commands:
|
|
|
|
- node --version && npm --version
|
2023-07-11 19:46:31 +02:00
|
|
|
- task build:frontend
|
2023-06-03 11:58:13 +02:00
|
|
|
when:
|
2023-06-10 16:03:30 +02:00
|
|
|
path:
|
|
|
|
- webui/**/*
|
|
|
|
- Taskfile.yml
|
2023-06-03 11:58:13 +02:00
|
|
|
|
|
|
|
lint:backend:
|
|
|
|
group: lint
|
2023-07-11 20:55:28 +02:00
|
|
|
image: albedo.lan:5000/rust-upend:latest
|
2023-06-03 11:58:13 +02:00
|
|
|
commands:
|
|
|
|
- rustup component add clippy
|
2023-07-11 19:46:31 +02:00
|
|
|
- task lint:backend
|
2023-06-03 11:58:13 +02:00
|
|
|
- git status -vvv
|
|
|
|
# volumes:
|
|
|
|
# - rust_registry:/usr/local/cargo
|
|
|
|
when:
|
2023-06-10 16:03:30 +02:00
|
|
|
path:
|
|
|
|
- migrations/**/*
|
|
|
|
- /**/*.rs
|
|
|
|
- /**/Cargo.lock
|
|
|
|
- Taskfile.yml
|
2023-06-03 11:58:13 +02:00
|
|
|
|
|
|
|
lint:frontend:
|
|
|
|
group: lint
|
2023-07-11 21:07:50 +02:00
|
|
|
image: albedo.lan:5000/node-upend:latest
|
2023-06-03 11:58:13 +02:00
|
|
|
commands:
|
|
|
|
- node --version && npm --version
|
2023-07-11 19:46:31 +02:00
|
|
|
- task lint:frontend
|
2023-06-03 12:09:50 +02:00
|
|
|
when:
|
2023-06-10 16:03:30 +02:00
|
|
|
path:
|
|
|
|
- webui/**/*
|
|
|
|
- Taskfile.yml
|
2023-06-03 11:58:13 +02:00
|
|
|
|
|
|
|
lint:jslib:
|
|
|
|
group: lint
|
2023-07-11 21:07:50 +02:00
|
|
|
image: albedo.lan:5000/node-upend:latest
|
2023-06-03 11:58:13 +02:00
|
|
|
commands:
|
|
|
|
- node --version && npm --version
|
2023-07-11 19:46:31 +02:00
|
|
|
- task lint:jslib
|
2023-06-03 12:09:50 +02:00
|
|
|
when:
|
2023-06-10 16:03:30 +02:00
|
|
|
path:
|
|
|
|
- tools/upend_js/**/*
|
|
|
|
- Taskfile.yml
|
2023-06-03 11:58:13 +02:00
|
|
|
|
|
|
|
lint:webext:
|
|
|
|
group: lint
|
2023-07-11 21:07:50 +02:00
|
|
|
image: albedo.lan:5000/node-upend:latest
|
2023-06-03 11:58:13 +02:00
|
|
|
commands:
|
|
|
|
- node --version && npm --version
|
2023-07-11 19:46:31 +02:00
|
|
|
- task lint:webext
|
2023-06-03 12:09:50 +02:00
|
|
|
when:
|
2023-06-10 16:03:30 +02:00
|
|
|
path:
|
|
|
|
- webext/**/*
|
|
|
|
- Taskfile.yml
|
2023-06-03 11:58:13 +02:00
|
|
|
|
|
|
|
test:backend:
|
|
|
|
group: test
|
2023-07-11 20:55:28 +02:00
|
|
|
image: albedo.lan:5000/rust-upend:latest
|
2023-06-03 11:58:13 +02:00
|
|
|
commands:
|
2023-07-11 19:46:31 +02:00
|
|
|
- task test:backend
|
2023-06-03 11:58:13 +02:00
|
|
|
# volumes:
|
|
|
|
# - rust_registry:/usr/local/cargo
|
|
|
|
when:
|
2023-06-10 16:03:30 +02:00
|
|
|
path:
|
|
|
|
- migrations/**/*
|
|
|
|
- /**/*.rs
|
|
|
|
- /**/Cargo.lock
|
|
|
|
- Taskfile.yml
|
2023-06-03 11:58:13 +02:00
|
|
|
|
|
|
|
package:
|
2023-07-11 20:55:28 +02:00
|
|
|
image: albedo.lan:5000/rust-upend:latest
|
2023-06-03 11:58:13 +02:00
|
|
|
commands:
|
|
|
|
- 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
|
2023-07-11 19:46:31 +02:00
|
|
|
- task package
|
2023-06-03 11:58:13 +02:00
|
|
|
when:
|
2023-06-10 16:03:30 +02:00
|
|
|
event: [tag]
|
2023-06-03 11:58:13 +02:00
|
|
|
|
|
|
|
publish:
|
|
|
|
image: woodpeckerci/plugin-gitea-release
|
|
|
|
settings:
|
|
|
|
base_url: https://git.thm.place
|
|
|
|
files:
|
|
|
|
- "*.AppImage"
|
2023-06-10 15:45:37 +02:00
|
|
|
- webext/web-ext-artifacts/*.zip
|
2023-06-03 11:58:13 +02:00
|
|
|
checksum: sha512
|
|
|
|
api_key:
|
2023-06-03 16:31:50 +02:00
|
|
|
from_secret: woodpecker_api_key
|
2023-06-03 11:58:13 +02:00
|
|
|
target: main
|
|
|
|
when:
|
|
|
|
event: [tag]
|