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