.github/workflows: add toggle for pushing unified images to github (#672)

Add ability to dispatch (manually run) unified container builds in github without push to ghcr.io.
This commit is contained in:
Benson Wong
2026-04-19 10:10:48 -07:00
committed by GitHub
parent c176fa70f1
commit 69728301f5
+7 -2
View File
@@ -36,6 +36,11 @@ on:
type: boolean
required: false
default: true
push_to_ghcr:
description: "Push images to ghcr.io"
type: boolean
required: false
default: true
permissions:
contents: read
@@ -92,7 +97,7 @@ jobs:
uses: docker/setup-buildx-action@v3
- name: Log in to GitHub Container Registry
if: ${{ !env.ACT }}
if: ${{ !env.ACT && (github.event_name == 'schedule' || inputs.push_to_ghcr == true) }}
uses: docker/login-action@v3
with:
registry: ghcr.io
@@ -116,7 +121,7 @@ jobs:
docker/unified/build-image.sh --${{ matrix.backend }}
- name: Push to GitHub Container Registry
if: ${{ !env.ACT }}
if: ${{ !env.ACT && (github.event_name == 'schedule' || inputs.push_to_ghcr == true) }}
run: |
BASE_TAG="ghcr.io/mostlygeek/llama-swap:unified-${{ matrix.backend }}"
DATE_TAG=$(date -u +%Y-%m-%d)