name: Build and Publish Docker Image on: push: branches: [main] env: REGISTRY: git.gpatti.com IMAGE: git.gpatti.com/gpatti/tentaclebot 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.gpatti.com -u gpatti --password-stdin - name: Build and push Docker image uses: docker/build-push-action@v6 with: context: . push: true tags: | ${{ env.IMAGE }}:latest ${{ env.IMAGE }}:${{ github.sha }}