compilar con contenedores sin ci

This commit is contained in:
Cat /dev/Nulo 2023-04-30 16:02:17 -03:00
parent 7f23223edd
commit 5ede79af03
2 changed files with 20 additions and 0 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@ build.js/
.env
cache/
rootfs/
.pnpm-store/

19
Justfile Normal file
View File

@ -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