fix(actions): set default build script name before service loop
The workflow was missing a default value for the BUILD_SCRIPT_NAME variable, which could cause failures when processing services. This commit adds "build.sh" as the default value. Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
parent
bbeb508738
commit
faadfa497f
1 changed files with 2 additions and 2 deletions
4
.github/workflows/release-deployment.yaml
vendored
4
.github/workflows/release-deployment.yaml
vendored
|
|
@ -43,6 +43,7 @@ jobs:
|
||||||
|
|
||||||
# Define backend services (consider moving this to workflow inputs or repo config)
|
# Define backend services (consider moving this to workflow inputs or repo config)
|
||||||
ls backend/cmd >> /tmp/backend.txt
|
ls backend/cmd >> /tmp/backend.txt
|
||||||
|
SERVICE="build.sh"
|
||||||
|
|
||||||
for SERVICE in "${SERVICES[@]}"; do
|
for SERVICE in "${SERVICES[@]}"; do
|
||||||
# Check if service is backend
|
# Check if service is backend
|
||||||
|
|
@ -55,8 +56,7 @@ jobs:
|
||||||
[[ $SERVICE == 'alerts' || $SERVICE == 'crons' ]] && BUILD_SCRIPT_NAME="build_${SERVICE}.sh"
|
[[ $SERVICE == 'alerts' || $SERVICE == 'crons' ]] && BUILD_SCRIPT_NAME="build_${SERVICE}.sh"
|
||||||
ee_build_args="ee"
|
ee_build_args="ee"
|
||||||
fi
|
fi
|
||||||
echo IMAGE_TAG=$IMAGE_TAG DOCKER_RUNTIME="depot" DOCKER_BUILD_ARGS="--push" ARCH=amd64 DOCKER_REPO=$DOCKER_REPO_OSS PUSH_IMAGE=0 bash ${BUILD_SCRIPT_NAME} $foss_build_args
|
IMAGE_TAG=$IMAGE_TAG DOCKER_RUNTIME="depot" DOCKER_BUILD_ARGS="--push" ARCH=amd64 DOCKER_REPO=$IMAGE_REGISTRY_URL PUSH_IMAGE=0 bash ${BUILD_SCRIPT_NAME} $foss_build_args
|
||||||
IMAGE_TAG=$IMAGE_TAG DOCKER_RUNTIME="depot" DOCKER_BUILD_ARGS="--push" ARCH=amd64 DOCKER_REPO=$DOCKER_REPO_OSS PUSH_IMAGE=0 bash ${BUILD_SCRIPT_NAME} $foss_build_args
|
|
||||||
done
|
done
|
||||||
|
|
||||||
- uses: azure/k8s-set-context@v1
|
- uses: azure/k8s-set-context@v1
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue