From e7ee79cae13efe13655e087b0aaac989d43e6e90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Tue, 11 Jul 2023 19:46:31 +0200 Subject: [PATCH] ci: move from using global `rust` image to local `rust-upend` --- .woodpecker.yml | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 422bc04..e6e90b5 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -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]