Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Commit 4383370

Browse files
committed
ci: set scale down in deployment
1 parent a91b870 commit 4383370

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/ibmcloud-codeengine.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,13 @@ jobs:
5353
env:
5454
CE_PROJECT: ${{ vars.CE_PROJECT }}
5555
CE_APP_NAME: ${{ vars.CE_APP_NAME }}
56+
CE_SCALE_DOWN_DELAY: ${{ vars.CE_SCALE_DOWN_DELAY }}
5657
CR_IMAGE: ${{ vars.CR_IMAGE }}
5758
run: |
5859
IMAGE_TAG=$(date '+%FT%H%M%S')
5960
docker build -t ${CR_IMAGE}:$IMAGE_TAG .
6061
docker push ${CR_IMAGE}:$IMAGE_TAG
6162
ibmcloud ce project select --name ${CE_PROJECT}
6263
ibmcloud ce app logs --tail 5 --follow --name ${CE_APP_NAME} &
63-
ibmcloud ce app update --image private.${CR_IMAGE}:$IMAGE_TAG --name ${CE_APP_NAME}
64+
ibmcloud ce app update --image private.${CR_IMAGE}:$IMAGE_TAG --scale-down-delay ${CE_SCALE_DOWN_DELAY} --name ${CE_APP_NAME}
6465

0 commit comments

Comments
 (0)