From c69a968889901fd69d2f978d7ac567d9612756a9 Mon Sep 17 00:00:00 2001 From: Christomatt Date: Sat, 31 Jan 2026 04:42:47 +0100 Subject: [PATCH] Change to manual Docker builds - workflow_dispatch only --- .github/workflows/docker.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index b3c034b..bf4e90f 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -1,14 +1,17 @@ name: Build and Push Docker Image to GHCR on: + # Manual trigger only - you decide when to build + workflow_dispatch: + inputs: + tag: + description: 'Image tag (default: latest)' + required: false + default: 'latest' + # Also build on version tags push: - branches: - - main tags: - 'v*' - pull_request: - branches: - - main env: REGISTRY: ghcr.io @@ -42,14 +45,12 @@ jobs: with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} tags: | - type=ref,event=branch - type=ref,event=pr type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}} type=sha,prefix=,suffix=,format=short - # Always tag main branch as latest - type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }} + # Use input tag for manual runs, 'latest' for tag pushes + type=raw,value=${{ inputs.tag || 'latest' }} - name: Build and push Docker image uses: docker/build-push-action@v5