diff options
author | Gabriel Arakaki Giovanini <mail@gabrielgio.me> | 2022-06-25 16:13:19 +0200 |
---|---|---|
committer | Gabriel Arakaki Giovanini <mail@gabrielgio.me> | 2022-06-25 16:18:42 +0200 |
commit | 184a8d32e48441ff8025b2ea6cc2bec579d352c2 (patch) | |
tree | 38fcb3fa8b24b6100994c5ca15a4dd14db1777f4 | |
parent | 7bb748bcbbc958049a7f3ddd42c57445c3c5e159 (diff) | |
download | genpass-184a8d32e48441ff8025b2ea6cc2bec579d352c2.tar.gz genpass-184a8d32e48441ff8025b2ea6cc2bec579d352c2.tar.bz2 genpass-184a8d32e48441ff8025b2ea6cc2bec579d352c2.zip |
ref: Move from gitlab to sr.ht pipeline
-rw-r--r-- | .build.yml | 26 | ||||
-rw-r--r-- | .gitlab-ci.yml | 30 |
2 files changed, 26 insertions, 30 deletions
diff --git a/.build.yml b/.build.yml new file mode 100644 index 0000000..82ea506 --- /dev/null +++ b/.build.yml @@ -0,0 +1,26 @@ +image: alpine/latest +packages: + - curl + +secrets: + - 008c4f67-b864-47f8-9790-cd32f2ae8516 + +environment: + deploy: builds@gabrielgio.me + +tasks: + - rustup: | + export PATH="$PATH:$HOME/.cargo/bin" + apk add npm make curl build-base firefox + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --profile minimal --quiet -y + curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh + - test: | + cd genpass + make test + - deploy: | + cd genpass + make + sshopts="ssh -o StrictHostKeyChecking=no" + rsync --rsh="$sshopts" -rP public/* $deploy:/var/www/genpass.gabrielgio.me/ + + diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 0cb348c..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,30 +0,0 @@ -image: alpine:3 - -stages: - - test - -test: - before_script: - - export PATH="$PATH:$HOME/.cargo/bin" - - apk add npm make curl build-base firefox - - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --profile minimal --quiet -y - - curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh - script: - - make test - -pages: - needs: - - test - before_script: - - export PATH="$PATH:$HOME/.cargo/bin" - - apk add npm make curl build-base - - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --profile minimal --quiet -y - - curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh - script: - - make - artifacts: - paths: - - public - only: - refs: - - master |