-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcloudbuild_client.yml
More file actions
33 lines (30 loc) · 1.09 KB
/
Copy pathcloudbuild_client.yml
File metadata and controls
33 lines (30 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
steps:
# Configura el entorno
- name: 'gcr.io/cloud-builders/gcloud'
args: ['config', 'set', 'project', 'desafio-tripulaciones']
# Construye la imagen de la aplicación web (etiqueta latest)
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'gcr.io/desafio-tripulaciones/tripulaciones-client:latest', './client']
# Sube la imagen al Container Registry (etiqueta latest)
- name: 'gcr.io/cloud-builders/docker'
args: ['push', 'gcr.io/desafio-tripulaciones/tripulaciones-client:latest']
# Implementa la imagen en Cloud Run (etiqueta latest)
- name: 'gcr.io/cloud-builders/gcloud'
entrypoint: bash
args: [
"-c",
"gcloud run deploy tripulaciones-client \
--image=gcr.io/desafio-tripulaciones/tripulaciones-client:latest \
--region=europe-west1 \
--platform=managed \
--allow-unauthenticated \
--port=5173 \
--update-env-vars PG_USER=$$PG_USER"
]
secretEnv: [
'PG_USER'
]
availableSecrets:
secretManager:
- versionName: projects/795308822384/secrets/PG_USER/versions/latest
env: PG_USER