Skip to content

Commit 3e8e414

Browse files
committed
fix: new name for the manual run trigger
1 parent 3bc24d3 commit 3e8e414

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/stage-3-build-images.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ on:
5252
description: Excluded containers in a comma separated list
5353
required: true
5454
type: string
55-
build_all_services: # New input for manual "build all"
56-
description: Manual build for ALL services defined in compose files
55+
build_all_containers: # New input for manual "build all"
56+
description: Manual build for ALL containers defined in compose files
5757
required: false
5858
type: boolean
5959
default: false
@@ -89,7 +89,7 @@ jobs:
8989
EXCLUDED_CONTAINERS_CSV: ${{ (github.event_name == 'workflow_call' && inputs.excluded_containers_csv_list) || github.event.inputs.excluded_containers_csv_list }}
9090
SOURCE_CODE_PATH: ${{ (github.event_name == 'workflow_call' && inputs.function_app_source_code_path) || github.event.inputs.function_app_source_code_path }}
9191
# Pass manual flag to script; defaults to 'false' if not a workflow_dispatch or if input not set
92-
MANUAL_BUILD_ALL: ${{ (github.event_name == 'workflow_dispatch' && github.event.inputs.build_all_services) || 'false' }}
92+
BUILD_ALL_CONTAINERS: ${{ (github.event_name == 'workflow_dispatch' && github.event.inputs.build_all_containers) || 'false' }}
9393
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9494
run: bash ./templates/scripts/deployments/get-docker-names.sh
9595

scripts/deployments/get-docker-names.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ echo -e "\nChanged source code folder(s):"
4141
printf " - %s\n" "${source_changes[@]}"
4242
echo
4343

44-
# If MANUAL_BUILD_ALL is true
45-
if [[ "${MANUAL_BUILD_ALL,,}" == "true" ]]; then
46-
echo "MANUAL_BUILD_ALL is true. Change detection based on specific folders will be skipped; all services will be included."
44+
# If BUILD_ALL_CONTAINERS is true
45+
if [[ "${BUILD_ALL_CONTAINERS,,}" == "true" ]]; then
46+
echo "BUILD_ALL_CONTAINERS is true. Change detection based on specific folders will be skipped; all services will be included."
4747
source_changes=()
4848
fi
4949

@@ -104,8 +104,8 @@ for compose_file in ${COMPOSE_FILES_CSV}; do
104104
echo
105105

106106
# STEP 2 - Now check the source code changes against the map created in STEP 1 to determine which containers to build
107-
if [[ "${MANUAL_BUILD_ALL,,}" == "true" ]]; then
108-
echo "MANUAL_BUILD_ALL: Adding all services from '${compose_file}'."
107+
if [[ "${BUILD_ALL_CONTAINERS,,}" == "true" ]]; then
108+
echo "BUILD_ALL_CONTAINERS: Adding all services from '${compose_file}'."
109109
for key in "${!docker_services_map[@]}"; do
110110
changed_services+=("${docker_services_map[$key]}")
111111
done

0 commit comments

Comments
 (0)