From 81621cb063af7355348dc1accde4c276e1959ce2 Mon Sep 17 00:00:00 2001 From: Phill Pover Date: Thu, 27 Mar 2025 09:38:36 +0000 Subject: [PATCH] Adding pipelines workflow --- .gitea/workflows/workflow.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .gitea/workflows/workflow.yaml diff --git a/.gitea/workflows/workflow.yaml b/.gitea/workflows/workflow.yaml new file mode 100644 index 0000000..8ac6dea --- /dev/null +++ b/.gitea/workflows/workflow.yaml @@ -0,0 +1,32 @@ +name: Anatid Blog CI Workflow +run-name: ${{ gitea.actor }} is running Anatid Blog Workflow + +on: + push: + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - name: Login to container registry + uses: docker/login-action@v3 + with: + registry: git.anatid.net + username: ${{ vars.GITEA_USERNAME }} + password: ${{ secrets.GITEA_PASSWORD }} + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Build backend + run: CD ./backend + - name: Build and push + uses: docker/build-push-action@v6 + with: + push: true + tags: tabris/anatid-blog-backend:latest + - name: Build frontend + run: CD ../frontend + - name: Build and push + uses: docker/build-push-action@v6 + with: + push: true + tags: tabris/anatid-blog-frontend:latest