diff --git a/.gitea/workflows/build-container.yml b/.gitea/workflows/build-container.yml new file mode 100644 index 0000000..2acccd5 --- /dev/null +++ b/.gitea/workflows/build-container.yml @@ -0,0 +1,33 @@ +name: Build Container + +on: + push: + branches: + - main + +jobs: + build: + name: Build Docker Container + runs-on: ubuntu-latest + + steps: + - name: Checkout Code + uses: actions/checkout@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Log in to Gitea Container Registry + uses: docker/login-action@v2 + with: + registry: gitea.abzk.fr + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Build and Push Docker Image + uses: docker/build-push-action@v4 + with: + context: . + file: ./Dockerfile + push: true + tags: gitea.abzk.fr/mrzaiko/project-monitor:latest