aboutsummaryrefslogtreecommitdiff
path: root/build.yml
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2022-12-25 19:41:13 +0100
committerGabriel A. Giovanini <mail@gabrielgio.me>2022-12-25 19:43:46 +0100
commit6f158c70803c3486f263f67619166c697832df72 (patch)
tree863318611e138a1ae0e25d94411e834ea801112c /build.yml
parent74aa2ec7fcd8881b442dce1e6cd24e53ee1c2919 (diff)
downloadjnfilter-6f158c70803c3486f263f67619166c697832df72.tar.gz
jnfilter-6f158c70803c3486f263f67619166c697832df72.tar.bz2
jnfilter-6f158c70803c3486f263f67619166c697832df72.zip
feat: Move archive folder
Diffstat (limited to 'build.yml')
-rw-r--r--build.yml25
1 files changed, 25 insertions, 0 deletions
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