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

CICD cloudbuild.yaml #56

@nik-kel

Description

@nik-kel

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions