# Optional Gitea Actions pipeline: build the Docker image and push it to the # Gitea Container Registry on every push to the main branch. # # Requirements: # * A Gitea Actions runner (act_runner) registered with this instance. # * The registry host (e.g. 192.168.1.171:3000) added as an *insecure registry* # in the runner's Docker daemon (/etc/docker/daemon.json), because it is # served over plain HTTP on a custom port: # { "insecure-registries": ["192.168.1.171:3000"] } # # After a successful run the image is available as: # 192.168.1.171:3000//rss-ntfy:latest name: build-and-push on: push: branches: [main] jobs: docker: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 - name: Set up Buildx uses: docker/setup-buildx-action@v3 with: driver-opts: network=host - name: Log in to Gitea registry uses: docker/login-action@v3 with: registry: ${{ vars.REGISTRY_HOST }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push uses: docker/build-push-action@v6 with: context: . push: true tags: | ${{ vars.REGISTRY_HOST }}/${{ github.repository }}:latest ${{ vars.REGISTRY_HOST }}/${{ github.repository }}:${{ github.sha }}