ci: move from using global `rust` image to local `rust-upend`
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/manual/woodpecker Pipeline failed Details

feat/type-attributes
Tomáš Mládek 2023-07-11 19:46:31 +02:00
parent f8817d07f3
commit e7ee79cae1
1 changed files with 12 additions and 18 deletions

View File

@ -1,16 +1,10 @@
pipeline:
prepare:task:
image: rust:latest
commands:
- mkdir .ci_tmp
- sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b .ci_tmp
build:backend:
group: build
image: rust:latest
image: albedo.lan/rust-upend:latest
commands:
- rustc --version && cargo --version
- ./.ci_tmp/task build:backend
- task build:backend
# volumes:
# - rust_registry:/usr/local/cargo
when:
@ -25,7 +19,7 @@ pipeline:
image: node:lts
commands:
- node --version && npm --version
- ./.ci_tmp/task build:frontend
- task build:frontend
when:
path:
- webui/**/*
@ -33,10 +27,10 @@ pipeline:
lint:backend:
group: lint
image: rust:latest
image: albedo.lan/rust-upend:latest
commands:
- rustup component add clippy
- ./.ci_tmp/task lint:backend
- task lint:backend
- git status -vvv
# volumes:
# - rust_registry:/usr/local/cargo
@ -52,7 +46,7 @@ pipeline:
image: node:lts
commands:
- node --version && npm --version
- ./.ci_tmp/task lint:frontend
- task lint:frontend
when:
path:
- webui/**/*
@ -63,7 +57,7 @@ pipeline:
image: node:lts
commands:
- node --version && npm --version
- ./.ci_tmp/task lint:jslib
- task lint:jslib
when:
path:
- tools/upend_js/**/*
@ -74,7 +68,7 @@ pipeline:
image: node:lts
commands:
- node --version && npm --version
- ./.ci_tmp/task lint:webext
- task lint:webext
when:
path:
- webext/**/*
@ -82,10 +76,10 @@ pipeline:
test:backend:
group: test
image: rust:latest
image: albedo.lan/rust-upend:latest
commands:
- curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C /usr/local/cargo/bin
- ./.ci_tmp/task test:backend
- task test:backend
# volumes:
# - rust_registry:/usr/local/cargo
when:
@ -96,7 +90,7 @@ pipeline:
- Taskfile.yml
package:
image: rust:latest
image: albedo.lan/rust-upend:latest
commands:
- cd ./.ci_tmp/
- wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
@ -105,7 +99,7 @@ pipeline:
- ln -s $PWD/squashfs-root/AppRun /usr/local/bin/linuxdeploy-x86_64.AppImage
- cd -
- git status -vvv
- ./.ci_tmp/task package
- task package
when:
event: [tag]