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