upend/.woodpecker.yml

119 lines
2.7 KiB
YAML
Raw Normal View History

pipeline:
build:backend:
group: build
2023-07-11 20:55:28 +02:00
image: albedo.lan:5000/rust-upend:latest
commands:
- rustc --version && cargo --version
- task build:backend
# volumes:
# - rust_registry:/usr/local/cargo
when:
path:
- migrations/**/*
- /**/*.rs
- /**/Cargo.lock
- Taskfile.yml
build:frontend:
group: build
2023-07-11 21:07:50 +02:00
image: albedo.lan:5000/node-upend:latest
commands:
- node --version && npm --version
- task build:frontend
when:
path:
- webui/**/*
- Taskfile.yml
lint:backend:
group: lint
2023-07-11 20:55:28 +02:00
image: albedo.lan:5000/rust-upend:latest
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
2023-07-11 21:07:50 +02:00
image: albedo.lan:5000/node-upend:latest
commands:
- node --version && npm --version
- task lint:frontend
2023-06-03 12:09:50 +02:00
when:
path:
- webui/**/*
- Taskfile.yml
lint:jslib:
group: lint
2023-07-11 21:07:50 +02:00
image: albedo.lan:5000/node-upend:latest
commands:
- node --version && npm --version
- task lint:jslib
2023-06-03 12:09:50 +02:00
when:
path:
- tools/upend_js/**/*
- Taskfile.yml
lint:webext:
group: lint
2023-07-11 21:07:50 +02:00
image: albedo.lan:5000/node-upend:latest
commands:
- node --version && npm --version
- task lint:webext
2023-06-03 12:09:50 +02:00
when:
path:
- webext/**/*
- Taskfile.yml
test:backend:
group: test
2023-07-11 20:55:28 +02:00
image: albedo.lan:5000/rust-upend:latest
commands:
- curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C /usr/local/cargo/bin
- task test:backend
# volumes:
# - rust_registry:/usr/local/cargo
when:
path:
- migrations/**/*
- /**/*.rs
- /**/Cargo.lock
- Taskfile.yml
package:
2023-07-11 20:55:28 +02:00
image: albedo.lan:5000/rust-upend:latest
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
- task package
when:
event: [tag]
publish:
image: woodpeckerci/plugin-gitea-release
settings:
base_url: https://git.thm.place
files:
- "*.AppImage"
- webext/web-ext-artifacts/*.zip
checksum: sha512
api_key:
2023-06-03 16:31:50 +02:00
from_secret: woodpecker_api_key
target: main
when:
event: [tag]