diff options
author | Gabriel Arakaki Giovanini <mail@gabrielgio.me> | 2022-07-30 18:25:41 +0200 |
---|---|---|
committer | Gabriel Arakaki Giovanini <mail@gabrielgio.me> | 2022-07-30 18:25:41 +0200 |
commit | b0beccc6f2edd9fc12889bfd3d3339aceb8d7dc0 (patch) | |
tree | dc466177ecf8423ead33c99e97ec84753cd07f8c | |
parent | 39229a39f3e1679c5c1cb581d169c57f6310f2a3 (diff) | |
download | genpass-b0beccc6f2edd9fc12889bfd3d3339aceb8d7dc0.tar.gz genpass-b0beccc6f2edd9fc12889bfd3d3339aceb8d7dc0.tar.bz2 genpass-b0beccc6f2edd9fc12889bfd3d3339aceb8d7dc0.zip |
ref: Add build to archive code
Also remove automatic build. I'll submit a build once I have a new
version. There is no need to do it every commit.
-rw-r--r-- | .build.yml | 32 | ||||
-rw-r--r-- | build.yml | 48 |
2 files changed, 48 insertions, 32 deletions
diff --git a/.build.yml b/.build.yml deleted file mode 100644 index f887cab..0000000 --- a/.build.yml +++ /dev/null @@ -1,32 +0,0 @@ -image: alpine/latest -packages: - - curl - - build-base - - firefox - - make - - npm - - rsync - -secrets: - - 008c4f67-b864-47f8-9790-cd32f2ae8516 - -environment: - deploy: builds@gabrielgio.me - -tasks: - - rustup: | - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --profile minimal --quiet -y - source $HOME/.cargo/env - curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh - - test: | - source $HOME/.cargo/env - cd genpass - make test - - deploy: | - source $HOME/.cargo/env - cd genpass - make - sshopts="ssh -o StrictHostKeyChecking=no" - rsync --rsh="$sshopts" -rP public/* $deploy:/var/www/genpass.gabrielgio.me/ - - diff --git a/build.yml b/build.yml new file mode 100644 index 0000000..43181e3 --- /dev/null +++ b/build.yml @@ -0,0 +1,48 @@ +image: alpine/latest + +packages: + - curl + - build-base + - firefox + - make + - npm + - tar + - gzip + - git + +sources: + - https://git.sr.ht/~gabrielgio/genpass - rsync + +secrets: + - 008c4f67-b864-47f8-9790-cd32f2ae8516 + +environment: + build: builds@gabrielgio.me + site: genpass.gabrielgio.me/ + artifact: artifacts.gabrielgio.me/genpass/ + version: 0.1.0 + +tasks: + - rustup: | + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --profile minimal --quiet -y + source $HOME/.cargo/env + curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh + - test: | + source $HOME/.cargo/env + cd genpass + make test + - archive: | + cd genpass + git archive \ + -o genpass-$version.tar.gz \ + --prefix=genpass-$version/ HEAD + - deploy_site: | + source $HOME/.cargo/env + cd genpass + make + sshopts="ssh -o StrictHostKeyChecking=no" + rsync --rsh="$sshopts" -rP public/* $build:/var/www/$site + - deploy_archive: | + cd genpass + sshopts="ssh -o StrictHostKeyChecking=no" + rsync --rsh="$sshopts" -rP *.tar.* $build:/var/www/$artifact |