diff options
author | Gabriel Arakaki Giovanini <mail@gabrielgio.me> | 2022-10-01 13:19:32 +0200 |
---|---|---|
committer | Gabriel Arakaki Giovanini <mail@gabrielgio.me> | 2022-10-01 13:19:32 +0200 |
commit | 26d6e73e854391012309567d398b45f9493fbc12 (patch) | |
tree | 4981dde5e1825e2ad9484d5abebb0bfaa0ccd6fb /build.yml | |
parent | 61223f0d1a16904866283c13acacc1992b0c6d5f (diff) | |
download | reddit-nextcloud-importer-26d6e73e854391012309567d398b45f9493fbc12.tar.gz reddit-nextcloud-importer-26d6e73e854391012309567d398b45f9493fbc12.tar.bz2 reddit-nextcloud-importer-26d6e73e854391012309567d398b45f9493fbc12.zip |
feat: Moving away from docker to alpine package
Add build and publish of the package tar.
Diffstat (limited to 'build.yml')
-rw-r--r-- | build.yml | 28 |
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 + |