aboutsummaryrefslogtreecommitdiff
path: root/build.yml
blob: 14a841113dbe1ea3d58713fb3382552080ee5df0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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