Fix base image workflow inputs and runtime build (#733)
This commit is contained in:
parent
35f9ffd512
commit
8f74d84225
9
.github/workflows/build-base-images.yml
vendored
9
.github/workflows/build-base-images.yml
vendored
@ -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 }}
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user