aboutsummaryrefslogtreecommitdiff
path: root/build.yml
diff options
context:
space:
mode:
Diffstat (limited to 'build.yml')
-rw-r--r--build.yml28
1 files changed, 28 insertions, 0 deletions
diff --git a/build.yml b/build.yml
new file mode 100644
index 0000000..14a8411
--- /dev/null
+++ b/build.yml
@@ -0,0 +1,28 @@
+# this build is meant to be submitted manually
+image: alpine/latest
+packages:
+ - python3-dev
+ - python3-setuptools_scm
+ - py3-poetry
+
+sources:
+ - https://git.sr.ht/~gabrielgio/reddit-nextcloud-importer
+
+secrets:
+ - 008c4f67-b864-47f8-9790-cd32f2ae8516
+
+environment:
+ deploy: builds@gabrielgio.me
+ target: artifacts.gabrielgio.me/reddit-nextcloud-importer/
+ version: v0.1.1
+
+tasks:
+ - archive: |
+ cd reddit-nextcloud-importer
+ poetry build
+
+ - deploy: |
+ cd reddit-nextcloud-importer/dist/
+ sshopts="ssh -o StrictHostKeyChecking=no"
+ rsync --rsh="$sshopts" -rP *.tar.* $deploy:/var/www/$target
+