From 7f3beebe85d9c8639d6f6ac6d4d83ea84603ec14 Mon Sep 17 00:00:00 2001 From: AJ Isaacs Date: Thu, 2 Jul 2026 11:20:18 -0400 Subject: [PATCH] ci: add Gitea workflow to build and push image on main Same auto-build setup as CncApi and LaserQuote.Web so all forge services publish to the Gitea registry on push instead of the manual docker save/load flow. Co-Authored-By: Claude Fable 5 --- .gitea/workflows/build-pepapi.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .gitea/workflows/build-pepapi.yml diff --git a/.gitea/workflows/build-pepapi.yml b/.gitea/workflows/build-pepapi.yml new file mode 100644 index 0000000..88cbe0d --- /dev/null +++ b/.gitea/workflows/build-pepapi.yml @@ -0,0 +1,28 @@ +name: Build PepApi image + +on: + push: + branches: [main] + paths: + - "PepApi.Core/**" + - "PepLib.Core/**" + - "Dockerfile" + - ".gitea/workflows/build-pepapi.yml" + workflow_dispatch: {} + +jobs: + build-and-push: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Log in to Gitea container registry + run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.thecozycat.net -u "${{ gitea.actor }}" --password-stdin + + - name: Build image + run: docker build -t git.thecozycat.net/${{ gitea.repository_owner }}/pepapi:latest -t git.thecozycat.net/${{ gitea.repository_owner }}/pepapi:${{ gitea.sha }} . + + - name: Push image + run: | + docker push git.thecozycat.net/${{ gitea.repository_owner }}/pepapi:latest + docker push git.thecozycat.net/${{ gitea.repository_owner }}/pepapi:${{ gitea.sha }}