~hristoast/hristoast

hristoast/.build.yml -rw-r--r-- 1.2 KiB
4c97c4e5Hristos N. Triantafillou No more zen2 2 days ago
                                                                                
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
29
30
31
32
33
34
35
36
image: archlinux
environment:
  feedgen_version: 0.9.0
  pystache_version: 0.5.4
  soupault_sha: 4f833c5b45948c5013d75e08add73f8568a50d182ac9f05206e9adec113075cd
  soupault_version: 2.0.0-beta1
packages:
  - highlight
  - make
  - python-dateutil
  - python-pip
  - rsync
  - wget
secrets:
 - 8551d48a-306d-4709-b580-ef5dfd8945ac
 - d6edee8f-4a70-4eec-a9d2-967ee5aecb0c
 - af635d10-5bbe-493f-a0c3-60c7e495f320
sources:
  - https://git.sr.ht/~hristoast/hristoast
tasks:
  - get-soupault: |
      wget https://files.baturin.org/software/soupault/$soupault_version/soupault-$soupault_version-linux-x86_64.tar.gz
      echo "$soupault_sha  soupault-$soupault_version-linux-x86_64.tar.gz" | sha256sum -c -
  - install-soupault: |
      tar xvf soupault-$soupault_version-linux-x86_64.tar.gz
      sudo mv -v ./soupault-$soupault_version-linux-x86_64/soupault /usr/bin/
  - pip-install-feedgen: |
      sudo pip3 install feedgen==$feedgen_version pystache==$pystache_version
  - build: |
      cd ./hristoast
      make prod-site
  - deploy: |
      cat > ~/.ssh/known_hosts <<EOF
      $(cat ~/.hristoast_known_hosts)
      EOF
      rsync --delete -aq -e "ssh -F $HOME/.hristoast_ssh_config" ./hristoast/build/ hristoast:~/html/