From 6f158c70803c3486f263f67619166c697832df72 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Sun, 25 Dec 2022 19:41:13 +0100 Subject: feat: Move archive folder --- build.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 build.yml (limited to 'build.yml') diff --git a/build.yml b/build.yml new file mode 100644 index 0000000..10616d0 --- /dev/null +++ b/build.yml @@ -0,0 +1,25 @@ +image: alpine/latest +packages: + - rsync + +sources: + - https://git.sr.ht/~gabrielgio/jnfilter + +secrets: + - 008c4f67-b864-47f8-9790-cd32f2ae8516 + +environment: + build: builds@gabrielgio.me + artifact: artifacts.gabrielgio.me/archive/jnfilter/ + version: 0.1.0 + +tasks: + - archive: | + cd jnfilter + git archive \ + -o jnfilter-$version.tar.gz \ + --prefix=jnfilter-$version/ HEAD + - deploy_archive: | + cd jnfilter + sshopts="ssh -o StrictHostKeyChecking=no" + rsync --mkpath --rsh="$sshopts" -rP *.tar.* $build:/var/www/$artifact -- cgit v1.2.3