From 5ede79af03550d07817089d32b9a89a7ddf8eb2d Mon Sep 17 00:00:00 2001 From: Nulo Date: Sun, 30 Apr 2023 16:02:17 -0300 Subject: [PATCH] compilar con contenedores sin ci --- .gitignore | 1 + Justfile | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 Justfile 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 + +