Fix base image workflow inputs and runtime build (#733)

This commit is contained in:
cloudneutral 2025-12-03 15:55:36 +08:00 committed by GitHub
parent 35f9ffd512
commit 8f74d84225
2 changed files with 9 additions and 4 deletions

View File

@ -7,10 +7,15 @@ on:
description: "Push images instead of building locally"
type: boolean
default: true
workflow_dispatch:
inputs:
push_images:
description: "Push images instead of building locally"
type: boolean
default: true
push:
paths:
- "deploy/base-images/**"
workflow_dispatch: {}
permissions:
contents: read
@ -60,7 +65,7 @@ jobs:
context: .
file: ${{ matrix.image.file }}
platforms: linux/amd64,linux/arm64
push: ${{ inputs.push_images }}
push: ${{ (github.event_name == 'workflow_call' || github.event_name == 'workflow_dispatch') && inputs.push_images || github.event_name == 'push' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

View File

@ -7,11 +7,11 @@ ENV NEXT_TELEMETRY_DISABLED=1 \
NODE_ENV=production
RUN set -eux; \
corepack enable; \
apt-get update; \
apt-get install -y --no-install-recommends \
ca-certificates; \
rm -rf /var/lib/apt/lists/*
rm -rf /var/lib/apt/lists/*; \
corepack enable
WORKDIR /app