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

Commit 89cdb54

Browse files
committed
chore: Fix ansible/yq zones
1 parent f3e63ff commit 89cdb54

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/build-and-publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,14 @@ jobs:
6262
DOCKER_REGISTRY: "${{ secrets.GCP_LOCATION }}-docker.pkg.dev/${{ secrets.GCP_PROJECT }}/${{ secrets.GCP_DOCKER_REPOSITORY }}/"
6363
GCP_SM_KEY: "${{ secrets.GCP_SM_KEY }}"
6464
TAG: ${{ github.sha }}
65-
GCP_COMPUTE_SERVER_NAME: "${{ secrets.GCP_COMPUTE_SERVER_NAME }}"
66-
GCP_LOCATION: ${{ secrets.GCP_LOCATION }}
65+
GCP_COMPUTE_SERVER_NAME: ${{ secrets.GCP_COMPUTE_SERVER_NAME }}
66+
GCP_COMPUTE_SERVER_ZONE: ${{ secrets.GCP_COMPUTE_SERVER_ZONE }} # Zone
67+
GCP_LOCATION: ${{ secrets.GCP_LOCATION }} # Region
6768
GCP_PROJECT: ${{ secrets.GCP_PROJECT }}
6869
run: |
6970
pushd ansible
7071
yq -i ".projects |= [\"$GCP_PROJECT\"]" ./inventory/gcp.yml
71-
yq -i ".zones |= [\"$GCP_LOCATION\"]" ./inventory/gcp.yml
72+
yq -i ".zones |= [\"$GCP_COMPUTE_SERVER_ZONE\"]" ./inventory/gcp.yml
7273
sudo pipx inject ansible-core -r requirements.txt
7374
ansible-playbook site.yml
7475
popd

0 commit comments

Comments
 (0)