Last active
July 9, 2025 15:25
-
-
Save Klerith/aa11e73e7b8686576a2da87e9b81b0ca to your computer and use it in GitHub Desktop.
cloudbuild.yml con secretos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| steps: | |
| - name: 'gcr.io/cloud-builders/docker' | |
| entrypoint: 'bash' | |
| args: | |
| - -c | |
| - | | |
| docker build -t XXXXXX-docker.pkg.dev/project/image-registry/image-name -f dockerfile.prod --platform=linux/amd64 --build-arg ORDERS_DATABASE_URL=$$DATABASE_URL . | |
| secretEnv: ['DATABASE_URL'] | |
| - name: 'gcr.io/cloud-builders/docker' | |
| args: | |
| [ | |
| 'push', | |
| 'XXXXXX-docker.pkg.dev/project/image-registry/image-name', | |
| ] | |
| availableSecrets: | |
| secretManager: | |
| - versionName: projects/367390259998/secrets/orders_database_url/versions/1 | |
| env: 'DATABASE_URL' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Gracias por el tip. Ya estaba loco.