diff --git a/.gitignore b/.gitignore index 28ec882..8558a69 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ build.js/ .env cache/ rootfs/ +.pnpm-store/ diff --git a/Justfile b/Justfile new file mode 100644 index 0000000..5f79bdc --- /dev/null +++ b/Justfile @@ -0,0 +1,19 @@ +default: build + +builder := "gitea.nulo.in/nulo/sitio-build" +build_builder_image: + podman build -t {{builder}} tooling/ +_run command: build_builder_image + podman run -it \ + -v ".:/sitio:Z" --workdir /sitio \ + {{builder}} sh -c "{{command}}" +run command: (_run "pnpm install") (_run command) + +build: (run './tool build') +check: (run './tool check') +refresh_feeds: (run './tool refresh_feeds') + +ready_to_upload: check refresh_feeds build +upload: ready_to_upload + +