Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CICD cloudbuild.yaml #56

Open
nik-kel opened this issue Jun 25, 2024 · 0 comments
Open

CICD cloudbuild.yaml #56

nik-kel opened this issue Jun 25, 2024 · 0 comments

Comments

@nik-kel
Copy link

nik-kel commented Jun 25, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant