1
0
Fork 0

Merge branch 'config' into localApps

This commit is contained in:
pooneyy 2025-10-03 20:55:20 +08:00
commit 577e0ba38e
No known key found for this signature in database
1 changed files with 10 additions and 2 deletions

View File

@ -24,6 +24,12 @@ on:
default: latest default: latest
type: string type: string
build_context:
description: 构建上下文目录
required: false
type: string
default: .
dockerfile: dockerfile:
description: Dockerfile 在仓库中的路径 description: Dockerfile 在仓库中的路径
required: false required: false
@ -67,6 +73,7 @@ jobs:
TARGET_REF: ${{ github.event.inputs.ref }} TARGET_REF: ${{ github.event.inputs.ref }}
IMAGE_NAME: ${{ github.event.inputs.image_name }} IMAGE_NAME: ${{ github.event.inputs.image_name }}
IMAGE_TAG: ${{ github.event.inputs.image_tag }} IMAGE_TAG: ${{ github.event.inputs.image_tag }}
BUILD_CONTEXT: ${{ github.event.inputs.build_context }}
DOCKERFILE: ${{ github.event.inputs.dockerfile }} DOCKERFILE: ${{ github.event.inputs.dockerfile }}
ARCHITECTURES: ${{ github.event.inputs.architectures }} ARCHITECTURES: ${{ github.event.inputs.architectures }}
BUILD_ARGS: ${{ github.event.inputs.build_args }} BUILD_ARGS: ${{ github.event.inputs.build_args }}
@ -76,6 +83,7 @@ jobs:
echo "TARGET_REF=$TARGET_REF" echo "TARGET_REF=$TARGET_REF"
echo "IMAGE_NAME=$IMAGE_NAME" echo "IMAGE_NAME=$IMAGE_NAME"
echo "IMAGE_TAG=$IMAGE_TAG" echo "IMAGE_TAG=$IMAGE_TAG"
echo "BUILD_CONTEXT=$BUILD_CONTEXT"
echo "DOCKERFILE=$DOCKERFILE" echo "DOCKERFILE=$DOCKERFILE"
echo "ARCHITECTURES=$ARCHITECTURES" echo "ARCHITECTURES=$ARCHITECTURES"
echo "BUILD_ARGS=$BUILD_ARGS" echo "BUILD_ARGS=$BUILD_ARGS"
@ -161,8 +169,8 @@ jobs:
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
with: with:
build-args: | build-args: |
${{ github.event.inputs.repo }} ${{ github.event.inputs.build_args }}
context: . context: ${{ github.event.inputs.build_context}}
target: ${{ github.event.inputs.build_target }} target: ${{ github.event.inputs.build_target }}
push: true push: true
file: ${{ github.event.inputs.dockerfile }} file: ${{ github.event.inputs.dockerfile }}