X-Git-Url: https://git.shemshak.org/gitweb.cgi/~bandali/bndl.org/blobdiff_plain/c8dc487ac4f000ba99e81b11d7944c5482f5cb36..dc20106ca4f070d86bc350b36f19320ec8947dca:/.build.yml?ds=sidebyside diff --git a/.build.yml b/.build.yml index 88172dd..72b20c4 100644 --- a/.build.yml +++ b/.build.yml @@ -1,27 +1,14 @@ -image: archlinux +image: alpine/3.9 packages: - rsync - - wget sources: - - https://git.sr.ht/~aminb/aminb.org + - https://git.sr.ht/~bandali/bandali.eu.org environment: - deploy: deploy@aminb.org - hugo_version: "0.48" + deploy: deploy@bandali.eu.org secrets: - 6da5fd68-0594-4fc6-abe0-efe01ffe4b56 tasks: - - setup: | - wget "https://github.com/gohugoio/hugo/releases/download/v${hugo_version}/hugo_extended_${hugo_version}_Linux-64bit.tar.gz" - wget "https://github.com/gohugoio/hugo/releases/download/v${hugo_version}/hugo_extended_${hugo_version}_checksums.txt" - calculated_sha=$(sha256sum "hugo_extended_${hugo_version}_Linux-64bit.tar.gz") - expected_sha=$(grep "hugo_extended_${hugo_version}_Linux-64bit.tar.gz" "hugo_extended_${hugo_version}_checksums.txt") - printf "calculated: %s\n expected: %s" "$calculated_sha" "$expected_sha" - [ "$calculated_sha" = "$expected_sha" ] - tar xzf "hugo_extended_${hugo_version}_Linux-64bit.tar.gz" - - build: | - cd aminb.org - ../hugo --minify - deploy: | - cd aminb.org sshopts="-o StrictHostKeyChecking=no" - rsync --rsh="ssh $sshopts" -rP public/ ${deploy}:/var/www/aminb/html/ + rsync --rsh="ssh $sshopts" --exclude='.git/' -rP \ + bandali.eu.org/ ${deploy}:/var/www/bandali.eu.org/