add GNU Inside badge
[~bandali/bndl.org] / .build.yml
CommitLineData
ed891db3 1image: archlinux
992bda24 2packages:
992bda24 3 - rsync
62b7051c 4 - wget
992bda24 5sources:
c4a60c09 6 - https://git.sr.ht/~bandali/aminb.org
992bda24
AB
7environment:
8 deploy: deploy@aminb.org
af0b7ec5 9 hugo_version: "0.50"
992bda24 10secrets:
c8dc487a 11 - 6da5fd68-0594-4fc6-abe0-efe01ffe4b56
992bda24 12tasks:
62b7051c
AB
13 - setup: |
14 wget "https://github.com/gohugoio/hugo/releases/download/v${hugo_version}/hugo_extended_${hugo_version}_Linux-64bit.tar.gz"
15 wget "https://github.com/gohugoio/hugo/releases/download/v${hugo_version}/hugo_extended_${hugo_version}_checksums.txt"
16 calculated_sha=$(sha256sum "hugo_extended_${hugo_version}_Linux-64bit.tar.gz")
17 expected_sha=$(grep "hugo_extended_${hugo_version}_Linux-64bit.tar.gz" "hugo_extended_${hugo_version}_checksums.txt")
18 printf "calculated: %s\n expected: %s" "$calculated_sha" "$expected_sha"
19 [ "$calculated_sha" = "$expected_sha" ]
20 tar xzf "hugo_extended_${hugo_version}_Linux-64bit.tar.gz"
992bda24
AB
21 - build: |
22 cd aminb.org
62b7051c 23 ../hugo --minify
992bda24
AB
24 - deploy: |
25 cd aminb.org
26 sshopts="-o StrictHostKeyChecking=no"
27 rsync --rsh="ssh $sshopts" -rP public/ ${deploy}:/var/www/aminb/html/