mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-14 09:42: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:
parent
0c64c5867b
commit
61cc09cbd9
1 changed files with 5 additions and 5 deletions
10
.build.yml
10
.build.yml
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue