Last active
November 1, 2024 16:55
-
-
Save Klerith/aa11e73e7b8686576a2da87e9b81b0ca to your computer and use it in GitHub Desktop.
cloudbuild.yml con secretos
This file contains 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' |
Gracias por el tip. Ya estaba loco.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Para los que le salga este error
Deben otorgar un nuevo permiso a su cuenta