name: Minecraft Java Image run-name: Build and Push the Minecraft Java Image on: push: paths: - Dockerfile - IMAGE - VERSION - .gitea/workflows/minecraft.yaml schedule: - cron: '@daily' jobs: build-and-push-ddns: runs-on: ubuntu-latest if: gitea.ref == 'refs/heads/master' steps: - name: Check out repository code uses: actions/checkout@v4 - name: Build and push Docker image uses: https://github.com/docker/build-push-action@v5 with: context: ${{ gitea.workspace }} file: ${{ gitea.workspace }}/Dockerfile push: true tags: "gitea.reeseapps.com/services/minecraft:latest,gitea.reeseapps.com/services/minecraft:${{gitea.sha}}" no-cache: true