ci: move from using global rust
image to local rust-upend
This commit is contained in:
parent
f8817d07f3
commit
e7ee79cae1
1 changed files with 12 additions and 18 deletions
|
@ -1,16 +1,10 @@
|
||||||
pipeline:
|
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:
|
build:backend:
|
||||||
group: build
|
group: build
|
||||||
image: rust:latest
|
image: albedo.lan/rust-upend:latest
|
||||||
commands:
|
commands:
|
||||||
- rustc --version && cargo --version
|
- rustc --version && cargo --version
|
||||||
- ./.ci_tmp/task build:backend
|
- task build:backend
|
||||||
# volumes:
|
# volumes:
|
||||||
# - rust_registry:/usr/local/cargo
|
# - rust_registry:/usr/local/cargo
|
||||||
when:
|
when:
|
||||||
|
@ -25,7 +19,7 @@ pipeline:
|
||||||
image: node:lts
|
image: node:lts
|
||||||
commands:
|
commands:
|
||||||
- node --version && npm --version
|
- node --version && npm --version
|
||||||
- ./.ci_tmp/task build:frontend
|
- task build:frontend
|
||||||
when:
|
when:
|
||||||
path:
|
path:
|
||||||
- webui/**/*
|
- webui/**/*
|
||||||
|
@ -33,10 +27,10 @@ pipeline:
|
||||||
|
|
||||||
lint:backend:
|
lint:backend:
|
||||||
group: lint
|
group: lint
|
||||||
image: rust:latest
|
image: albedo.lan/rust-upend:latest
|
||||||
commands:
|
commands:
|
||||||
- rustup component add clippy
|
- rustup component add clippy
|
||||||
- ./.ci_tmp/task lint:backend
|
- task lint:backend
|
||||||
- git status -vvv
|
- git status -vvv
|
||||||
# volumes:
|
# volumes:
|
||||||
# - rust_registry:/usr/local/cargo
|
# - rust_registry:/usr/local/cargo
|
||||||
|
@ -52,7 +46,7 @@ pipeline:
|
||||||
image: node:lts
|
image: node:lts
|
||||||
commands:
|
commands:
|
||||||
- node --version && npm --version
|
- node --version && npm --version
|
||||||
- ./.ci_tmp/task lint:frontend
|
- task lint:frontend
|
||||||
when:
|
when:
|
||||||
path:
|
path:
|
||||||
- webui/**/*
|
- webui/**/*
|
||||||
|
@ -63,7 +57,7 @@ pipeline:
|
||||||
image: node:lts
|
image: node:lts
|
||||||
commands:
|
commands:
|
||||||
- node --version && npm --version
|
- node --version && npm --version
|
||||||
- ./.ci_tmp/task lint:jslib
|
- task lint:jslib
|
||||||
when:
|
when:
|
||||||
path:
|
path:
|
||||||
- tools/upend_js/**/*
|
- tools/upend_js/**/*
|
||||||
|
@ -74,7 +68,7 @@ pipeline:
|
||||||
image: node:lts
|
image: node:lts
|
||||||
commands:
|
commands:
|
||||||
- node --version && npm --version
|
- node --version && npm --version
|
||||||
- ./.ci_tmp/task lint:webext
|
- task lint:webext
|
||||||
when:
|
when:
|
||||||
path:
|
path:
|
||||||
- webext/**/*
|
- webext/**/*
|
||||||
|
@ -82,10 +76,10 @@ pipeline:
|
||||||
|
|
||||||
test:backend:
|
test:backend:
|
||||||
group: test
|
group: test
|
||||||
image: rust:latest
|
image: albedo.lan/rust-upend:latest
|
||||||
commands:
|
commands:
|
||||||
- curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C /usr/local/cargo/bin
|
- curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C /usr/local/cargo/bin
|
||||||
- ./.ci_tmp/task test:backend
|
- task test:backend
|
||||||
# volumes:
|
# volumes:
|
||||||
# - rust_registry:/usr/local/cargo
|
# - rust_registry:/usr/local/cargo
|
||||||
when:
|
when:
|
||||||
|
@ -96,7 +90,7 @@ pipeline:
|
||||||
- Taskfile.yml
|
- Taskfile.yml
|
||||||
|
|
||||||
package:
|
package:
|
||||||
image: rust:latest
|
image: albedo.lan/rust-upend:latest
|
||||||
commands:
|
commands:
|
||||||
- cd ./.ci_tmp/
|
- cd ./.ci_tmp/
|
||||||
- wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
|
- 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
|
- ln -s $PWD/squashfs-root/AppRun /usr/local/bin/linuxdeploy-x86_64.AppImage
|
||||||
- cd -
|
- cd -
|
||||||
- git status -vvv
|
- git status -vvv
|
||||||
- ./.ci_tmp/task package
|
- task package
|
||||||
when:
|
when:
|
||||||
event: [tag]
|
event: [tag]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue