From 1956acdcf3b6f72cec2f59c2d3ce3c6234781be2 Mon Sep 17 00:00:00 2001 From: Ashwin Kumar Sivakumar Date: Sat, 13 Jun 2026 01:41:32 +0530 Subject: [PATCH] ci: minimal workflow without external actions --- .forgejo/workflows/build-all.yaml | 38 +++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .forgejo/workflows/build-all.yaml diff --git a/.forgejo/workflows/build-all.yaml b/.forgejo/workflows/build-all.yaml new file mode 100644 index 0000000..7a90e2b --- /dev/null +++ b/.forgejo/workflows/build-all.yaml @@ -0,0 +1,38 @@ +name: build-all + +on: + push: + branches: + - main + - high-performance + +jobs: + build-gateway: + runs-on: self-hosted + steps: + - run: | + git clone --depth 1 http://forgejo-http.forgejo.svc.cluster.local:3000/ashwin/nxtgauge-backend-rust.git /tmp/repo + cd /tmp/repo + docker build -f Dockerfile.simple --build-arg SERVICE_NAME=gateway -t registry.nxtgauge.com/nxtgauge-rust-gateway:latest . + docker push registry.nxtgauge.com/nxtgauge-rust-gateway:latest + rm -rf /tmp/repo + + build-users: + runs-on: self-hosted + steps: + - run: | + git clone --depth 1 http://forgejo-http.forgejo.svc.cluster.local:3000/ashwin/nxtgauge-backend-rust.git /tmp/repo + cd /tmp/repo + docker build -f Dockerfile.simple --build-arg SERVICE_NAME=users -t registry.nxtgauge.com/nxtgauge-rust-users:latest . + docker push registry.nxtgauge.com/nxtgauge-rust-users:latest + rm -rf /tmp/repo + + build-cron: + runs-on: self-hosted + steps: + - run: | + git clone --depth 1 http://forgejo-http.forgejo.svc.cluster.local:3000/ashwin/nxtgauge-backend-rust.git /tmp/repo + cd /tmp/repo + docker build -f Dockerfile.simple --build-arg SERVICE_NAME=cron -t registry.nxtgauge.com/nxtgauge-rust-cron:latest . + docker push registry.nxtgauge.com/nxtgauge-rust-cron:latest + rm -rf /tmp/repo