From 0b5634333b55fcdd59d0bf876200d75e1cc5defe Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Sat, 22 Aug 2026 11:17:24 +0200 Subject: [PATCH] Add Forgejo Actions workflow to build and push image --- .forgejo/workflows/build.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .forgejo/workflows/build.yml diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml new file mode 100644 index 0000000..c50d3bc --- /dev/null +++ b/.forgejo/workflows/build.yml @@ -0,0 +1,36 @@ +name: Build and push container image + +on: + push: + branches: [main] + +env: + IMAGE: git.workaround.org/chaas/vector-search + +jobs: + build-and-push: + runs-on: docker + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to Forgejo registry + uses: docker/login-action@v3 + with: + registry: git.workaround.org + username: ${{ gitea.actor }} + password: ${{ secrets.FORGEJO_TOKEN }} + + - name: Build and push + uses: docker/build-push-action@v6 + with: + context: . + push: true + build-args: | + SOURCE_COMMIT=${{ github.sha }} + tags: | + ${{ env.IMAGE }}:latest + ${{ env.IMAGE }}:${{ github.sha }}