This repository was archived by the owner on Aug 15, 2025. It is now read-only.
Description Hi,
there is an error in the cloudbuild.yaml
This is one is working:
steps:
name: 'python:3.7' # Specify Python version
entrypoint: pip
args: ['install', '-r', 'cicd/python/requirements.txt', '--user']
name: 'python:3.7'
entrypoint: python
args: ['cicd/python/rules.py', '-e', 'SA_CREDENTIAL', '-l', '$_RULES_PATH', '-s', '-r', '$_REGION'] # Pre-upload dry run
secretEnv: ['SA_CREDENTIAL']
name: 'python:3.7'
entrypoint: python
args: ['cicd/python/rules.py', '-e', 'SA_CREDENTIAL', '-l', '$_RULES_PATH', '-s', '-r', '$_REGION', '-m'] # Upload/update rules
secretEnv: ['SA_CREDENTIAL']
name: 'python:3.7'
entrypoint: python
args: ['cicd/python/rules.py', '-e', 'SA_CREDENTIAL', '-l', '$_RULES_PATH', '-s', '-r', '$_REGION'] # Post-upload dry run
secretEnv: ['SA_CREDENTIAL']
options:
logging: CLOUD_LOGGING_ONLY
availableSecrets:
secretManager:
- env: SA_CREDENTIAL
versionName: projects/$_PROJECT_ID/secrets/$_SECRET_NAME/versions/latest
Reactions are currently unavailable
Hi,
there is an error in the cloudbuild.yaml
This is one is working:
steps:
name: 'python:3.7' # Specify Python version
entrypoint: pip
args: ['install', '-r', 'cicd/python/requirements.txt', '--user']
name: 'python:3.7'
entrypoint: python
args: ['cicd/python/rules.py', '-e', 'SA_CREDENTIAL', '-l', '$_RULES_PATH', '-s', '-r', '$_REGION'] # Pre-upload dry run
secretEnv: ['SA_CREDENTIAL']
name: 'python:3.7'
entrypoint: python
args: ['cicd/python/rules.py', '-e', 'SA_CREDENTIAL', '-l', '$_RULES_PATH', '-s', '-r', '$_REGION', '-m'] # Upload/update rules
secretEnv: ['SA_CREDENTIAL']
name: 'python:3.7'
entrypoint: python
args: ['cicd/python/rules.py', '-e', 'SA_CREDENTIAL', '-l', '$_RULES_PATH', '-s', '-r', '$_REGION'] # Post-upload dry run
secretEnv: ['SA_CREDENTIAL']
options:
logging: CLOUD_LOGGING_ONLY
availableSecrets:
secretManager:
- env: SA_CREDENTIAL
versionName: projects/$_PROJECT_ID/secrets/$_SECRET_NAME/versions/latest