Skip to content

Commit 1b1bb8d

Browse files
Merge pull request #186 from SourceMation/fix-the-build-process-vars
2 parents 45a3a6f + 8d5339b commit 1b1bb8d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/build-manual.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,11 @@ on:
146146
default: ''
147147
required: false
148148
type: string
149+
ref:
150+
description: 'Git branch or ref to run the workflow on'
151+
required: false
152+
type: string
153+
default: 'main'
149154
jobs:
150155
build_container_amd64:
151156
name: Build container (amd64)
@@ -237,7 +242,7 @@ jobs:
237242
echo "Building container: $container"
238243
# The cut -d',' -f2- won't make empty list for single element ...
239244
if [[ $to_build_list == $container ]]; then
240-
gh workflow run build-manual.yml --repo SourceMation/images -f container_name=$container
245+
gh workflow run build-manual.yml --repo SourceMation/images --ref ${{ inputs.ref }} -f container_name=$container -f push_image=${{ inputs.push_image }} -f test_image=${{ inputs.test_image }} -f push_readme=${{ inputs.push_readme }}
241246
else
242-
gh workflow run build-manual.yml --repo SourceMation/images -f container_name=$container -f next_containers=$to_build_list
247+
gh workflow run build-manual.yml --repo SourceMation/images --ref ${{ inputs.ref }} -f container_name=$container -f push_image=${{ inputs.push_image }} -f test_image=${{ inputs.test_image }} -f push_readme=${{ inputs.push_readme }} -f next_containers=$to_build_list
243248
fi

0 commit comments

Comments
 (0)