mirror of
https://github.com/google/nomulus
synced 2026-09-20 06:54:43 +00:00
Use environment custom worker pool for deploy step in cloud deploy (#3180)
This commit is contained in:
@@ -80,10 +80,12 @@ steps:
|
|||||||
artifact_storage=$(sed -n 's/^artifactStorage: //p' "$config_file")
|
artifact_storage=$(sed -n 's/^artifactStorage: //p' "$config_file")
|
||||||
service_account=$(sed -n 's/^serviceAccount: //p' "$config_file")
|
service_account=$(sed -n 's/^serviceAccount: //p' "$config_file")
|
||||||
cluster_val=$(sed -n 's/^cluster: //p' "$config_file")
|
cluster_val=$(sed -n 's/^cluster: //p' "$config_file")
|
||||||
|
worker_pool=$(sed -n 's/^workerPool: //p' "$config_file")
|
||||||
|
|
||||||
sed -i "s|artifactStorage: artifactStorage|artifactStorage: $artifact_storage|" "$target_file"
|
sed -i "s|artifactStorage: artifactStorage|artifactStorage: $artifact_storage|" "$target_file"
|
||||||
sed -i "s|serviceAccount: serviceAccount|serviceAccount: $service_account|" "$target_file"
|
sed -i "s|serviceAccount: serviceAccount|serviceAccount: $service_account|" "$target_file"
|
||||||
sed -i "s|cluster: cluster|cluster: $cluster_val|" "$target_file"
|
sed -i "s|cluster: cluster|cluster: $cluster_val|" "$target_file"
|
||||||
|
sed -i "s|workerPool: workerPool|workerPool: $worker_pool|" "$target_file"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ requireApproval: true
|
|||||||
executionConfigs:
|
executionConfigs:
|
||||||
- usages:
|
- usages:
|
||||||
- RENDER
|
- RENDER
|
||||||
- DEPLOY
|
|
||||||
- ANALYSIS
|
- ANALYSIS
|
||||||
- POSTDEPLOY
|
- POSTDEPLOY
|
||||||
executionTimeout: 3600s
|
executionTimeout: 3600s
|
||||||
@@ -16,6 +15,16 @@ executionConfigs:
|
|||||||
artifactStorage: artifactStorage
|
artifactStorage: artifactStorage
|
||||||
# Placeholder: Replace with project number.
|
# Placeholder: Replace with project number.
|
||||||
serviceAccount: serviceAccount
|
serviceAccount: serviceAccount
|
||||||
|
- usages:
|
||||||
|
- DEPLOY
|
||||||
|
executionTimeout: 3600s
|
||||||
|
privatePool:
|
||||||
|
# Placeholder: Replace with worker pool name.
|
||||||
|
workerPool: workerPool
|
||||||
|
# Placeholder: Replace with artifact bucket name.
|
||||||
|
artifactStorage: artifactStorage
|
||||||
|
# Placeholder: Replace with project number.
|
||||||
|
serviceAccount: serviceAccount
|
||||||
gke:
|
gke:
|
||||||
# Placeholder: Replace with project ID, location, and cluster name.
|
# Placeholder: Replace with project ID, location, and cluster name.
|
||||||
cluster: cluster
|
cluster: cluster
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ requireApproval: true
|
|||||||
executionConfigs:
|
executionConfigs:
|
||||||
- usages:
|
- usages:
|
||||||
- RENDER
|
- RENDER
|
||||||
- DEPLOY
|
|
||||||
- ANALYSIS
|
- ANALYSIS
|
||||||
- POSTDEPLOY
|
- POSTDEPLOY
|
||||||
executionTimeout: 3600s
|
executionTimeout: 3600s
|
||||||
@@ -15,6 +14,16 @@ executionConfigs:
|
|||||||
artifactStorage: artifactStorage
|
artifactStorage: artifactStorage
|
||||||
# Placeholder: Replace with project number.
|
# Placeholder: Replace with project number.
|
||||||
serviceAccount: serviceAccount
|
serviceAccount: serviceAccount
|
||||||
|
- usages:
|
||||||
|
- DEPLOY
|
||||||
|
executionTimeout: 3600s
|
||||||
|
privatePool:
|
||||||
|
# Placeholder: Replace with worker pool name.
|
||||||
|
workerPool: workerPool
|
||||||
|
# Placeholder: Replace with artifact bucket name.
|
||||||
|
artifactStorage: artifactStorage
|
||||||
|
# Placeholder: Replace with project number.
|
||||||
|
serviceAccount: serviceAccount
|
||||||
gke:
|
gke:
|
||||||
# Placeholder: Replace with project ID, location, and cluster name.
|
# Placeholder: Replace with project ID, location, and cluster name.
|
||||||
cluster: cluster
|
cluster: cluster
|
||||||
|
|||||||
Reference in New Issue
Block a user