1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-27 14:12:09 +00:00

CI: fetch a brotli-compressed tarball of binaries

Since we already have brotli installed in CI, we might as well use it.
This commit is contained in:
Rohan Kumar 2021-01-02 17:23:14 -08:00
parent 0c64c5867b
commit 61cc09cbd9
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479

View file

@ -2,8 +2,8 @@
image: alpine/edge image: alpine/edge
packages: packages:
- rsync - rsync
- zopfli # for max compression with gzip_static - zopfli # for max compression w/ gzip_static
- brotli # for max compression with brotli_static - brotli # for max compression w/ brotli_static, decompressing binaries
- git # for Hugo's gitInfo - git # for Hugo's gitInfo
- make - make
- npm # for testing with lighthouse and webhint - npm # for testing with lighthouse and webhint
@ -21,11 +21,11 @@ triggers:
tasks: tasks:
- deps: | - deps: |
echo "StrictHostKeyChecking=no" >> ~/.ssh/config echo "StrictHostKeyChecking=no" >> ~/.ssh/config
rsync deploy@seirdy.one:/home/deploy/binaries.tar.gz . rsync deploy@seirdy.one:/home/deploy/binaries.tar.br .
mkdir -p ~/bin mkdir -p ~/bin
tar x -ozC ~/bin -f binaries.tar.gz brotli -dc binaries.tar.br | tar x -oC ~/bin
cd seirdy.one cd seirdy.one
npm i -D --no-fund npm i -D --no-fund # no-fund reduces log verbosity
- build_deploy: | - build_deploy: |
cd seirdy.one cd seirdy.one
export PATH=~/bin:$PATH export PATH=~/bin:$PATH