Skip to content

Commit dfa8368

Browse files
committed
Updating the workflow file for pre-checking
1 parent 1f7e58c commit dfa8368

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/red-gcp-pre-pull-deployment-checks.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ jobs:
203203
# Set desired capacity
204204
DESIRED_CAPACITY="${{ github.event.inputs.desired_capacity || '63' }}"
205205
echo "desired_capacity=$DESIRED_CAPACITY" >> $GITHUB_OUTPUT
206+
INFINIA_INSTANCES=$(( (${{ env.DESIRED_CAPACITY }} + 8) / 9 ))
206207
207208
deploy-marketplace:
208209
needs: [prepare]
@@ -283,8 +284,8 @@ jobs:
283284
zone = "us-central1-f"
284285
project_id = "red-101"
285286
machine_type = "n2-standard-16"
286-
#desired_capacity = ${{ env.DESIRED_CAPACITY }}
287-
num_infinia_instances = ${{ env.DESIRED_CAPACITY }}
287+
desired_capacity = ${{ env.DESIRED_CAPACITY }}
288+
num_infinia_instances = ${INFINIA_INSTANCES}
288289
num_clients = ${{ env.NUM_CLIENTS }}
289290
#local_disks = 4
290291
pd_disk_size = 64

0 commit comments

Comments
 (0)