Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion builds/infra-destroy-features-mesh-gateways.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ steps:
- -c
- |
source vars.sh
gsutil cp gs://config-management-release/released/latest/linux_amd64/nomos nomos
gcloud storage cp gs://config-management-release/released/latest/linux_amd64/nomos nomos
chmod +x nomos
touch konfig && export KUBECONFIG=konfig
while [[ $(gcloud container clusters list --project ${_PROJECT_ID} --filter "STATUS=RUNNING AND resourceLabels.env:prod" --format="value(name)"| wc -l | awk '{print $1}') != "6" ]]; do
Expand Down
2 changes: 1 addition & 1 deletion builds/infra-features-gke-gateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ steps:
echo -e "The ip address is $$GCLB_IP..."
echo -e "Uploading the ip address to a cloud bucket"
echo "$(echo "\"$$GCLB_IP\"")" > /tmp/ip-address
gsutil -m -h "Content-Type: text/plain; charset=utf-8" cp /tmp/ip-address gs://${_PROJECT_ID}/platform-values/ip-address.json
gcloud storage cp /tmp/ip-address "gs://${_PROJECT_ID}/platform-values/ip-address.json" --content-type="text/plain; charset=utf-8"
rm /tmp/ip-address
2 changes: 1 addition & 1 deletion builds/infra-features-gke-mesh-gateways-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ steps:
- -c
- |
source vars.sh
gsutil cp gs://config-management-release/released/latest/linux_amd64/nomos nomos
gcloud storage cp gs://config-management-release/released/latest/linux_amd64/nomos nomos
chmod +x nomos
touch konfig && export KUBECONFIG=konfig
while [[ $(gcloud container clusters list --project ${_PROJECT_ID} --filter "STATUS=RUNNING AND resourceLabels.env:prod" --format="value(name)"| wc -l | awk '{print $1}') != "6" ]]; do
Expand Down
2 changes: 1 addition & 1 deletion builds/infra-features-gke-mesh-gateways.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ steps:
- |
export PROJECT_NUMBER=$(gcloud projects describe ${_PROJECT_ID} --format 'value(projectNumber)')
echo -e "PROJECT_NUMBER is $${PROJECT_NUMBER}"
gsutil cp gs://config-management-release/released/latest/linux_amd64/nomos nomos
gcloud storage cp gs://config-management-release/released/latest/linux_amd64/nomos nomos
chmod +x nomos
git config --global user.email "cloudbuild-ci@cloudbuild.gserviceaccount.com"
git config --global user.name "cloudbuild-ci"
Expand Down
8 changes: 4 additions & 4 deletions builds/terraform/infra-create-gcs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ steps:
args:
- -c
- |
([[ $(gsutil ls | grep "gs://${_PROJECT_ID}/") ]] || \
gsutil mb -p ${PROJECT_ID} gs://${_PROJECT_ID}) && \
([[ $(gsutil versioning get gs://${_PROJECT_ID} | grep Enabled) ]] || \
gsutil versioning set on gs://${_PROJECT_ID})
([[ $(gcloud storage ls | grep "gs://${_PROJECT_ID}/") ]] || \
gcloud storage buckets create --project=${PROJECT_ID} gs://${_PROJECT_ID}) && \
([[ $(gcloud storage buckets describe gs://${_PROJECT_ID} --format="default(versioning)" | grep Enabled) ]] || \
gcloud storage buckets update --versioning gs://${_PROJECT_ID})
4 changes: 2 additions & 2 deletions builds/terraform/infra-destroy-gcs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ steps:
args:
- -c
- |
([[ $(gsutil ls | grep "gs://${_PROJECT_ID}/") ]] && \
gsutil rm -r -f ${_PROJECT_ID} gs://${_PROJECT_ID})
([[ $(gcloud storage ls | grep "gs://${_PROJECT_ID}/") ]] && \
gcloud storage rm --recursive --continue-on-error ${_PROJECT_ID} gs://${_PROJECT_ID})
Loading