~samhh/samhh.com

8902cdcb468b0cb31d581613dd8a628070b73598 — Sam A. Horvath-Hunt 4 months ago f2d9d56
Deploy w/ NixOS
1 files changed, 4 insertions(+), 13 deletions(-)

M .build.yml
M .build.yml => .build.yml +4 -13
@@ 1,23 1,14 @@
image: alpine/latest
image: nixos/unstable
packages:
  - go
  - hugo
  - nixos.gnumake
  - nixos.hugo
  - nixos.openring
sources:
  - https://git.sr.ht/~samhh/samhh.com
  - https://git.sr.ht/~sircmpwn/openring
oauth: pages.sr.ht/PAGES:RW
environment:
  site: samhh.com
tasks:
# sircmpwn's site's build manifest is a good reference for openring integration:
# https://git.sr.ht/~sircmpwn/drewdevault.com/tree/master/item/.build.yml
#
# NB `/usr/local/bin` isn't in Sourcehut's build environment's Alpine image's
# `$PATH`.
- openring: |
    cd openring
    go build -o openring
    sudo cp openring /usr/bin
- build: |
    cd samhh.com
    make build