Skip to content

Commit

Permalink
Try to use region
Browse files Browse the repository at this point in the history
Signed-off-by: Parthvi <parthvi.vala@gmail.com>
  • Loading branch information
valaparthvi committed Dec 15, 2023
1 parent 76a6c6a commit 99928e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,10 @@ jobs:
uses: google-github-actions/setup-gcloud@v1
- name: Create runner
run: |
REGION=${{ inputs.zone }} | sed 's/-[abcdef]//'
gcloud compute instances create ${{ steps.generator.outputs.runner }} \
--zone ${{ inputs.zone }} \
--source-instance-template projects/${{ env.GKE_PROJECT_ID }}/regions/${{ inputs.zone }}/instanceTemplates/${{ inputs.runner_template }} &> /dev/null
--source-instance-template projects/${{ env.GKE_PROJECT_ID }}/regions/${REGION}/instanceTemplates/${{ inputs.runner_template }} &> /dev/null
- name: Allow traffic
run: |
gcloud compute instances add-tags ${{ steps.generator.outputs.runner }} \
Expand Down

0 comments on commit 99928e3

Please sign in to comment.