~jshholland/inv.alid.pw

d346e53ae9dd3e797405e9dd2269980179b61d06 — Josh Holland 5 months ago fec3caf
.build.yml: Build via Nix
1 files changed, 3 insertions(+), 11 deletions(-)

M .build.yml
M .build.yml => .build.yml +3 -11
@@ 1,10 1,4 @@
image: alpine/edge
packages:
  - make
  - npm
  - pandoc-cli
  - rsync
  - yq-go
image: nixos/unstable
sources:
  - https://git.sr.ht/~jshholland/inv.alid.pw
environment:


@@ 19,13 13,11 @@ tasks:
        printf 'not running job on non-master ref: %s\n' "$GIT_REF"
        exit 1
      fi
  - setup: |
      sudo npm i -g @djot/djot
  - build: |
      cd inv.alid.pw
      make
      nix build --extra-experimental-features 'nix-command flakes'
  - deploy: |
      mkdir -p $HOME/.ssh
      echo "$webhost $hostkey" > $HOME/.ssh/known_hosts
      cd inv.alid.pw
      rsync -rlptzz --delete --filter 'protect /fonts' site/ ${user}@${webhost}:
      rsync -rlptzz --delete --filter 'protect /fonts' result/ ${user}@${webhost}: