build: Run prettier instead of yamllint

Also switch to NixOS as runner image :)

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
Christoph Heiss 2023-04-21 22:03:22 +02:00
parent 9f89bd901f
commit 3f1f051289
Signed by: c8h4
GPG key ID: 6817E9C75C0785D7

View file

@ -1,17 +1,14 @@
---
image: debian/stable
arch: amd64
image: nixos/unstable
packages:
- hugo
- yamllint
- nixos.hugo
- nixos.nodePackages_latest.prettier
sources:
- https://git.sr.ht/~c8h4/c8h4.io
secrets:
- 647d8203-92ca-401c-92e1-0c5abe7420d2
tasks:
- lint: |
cd c8h4.io
yamllint --strict .
prettier --check .
- build: |
cd c8h4.io
hugo --minify