Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroGlezC authored May 11, 2024
1 parent 5565d8c commit 1cfc6c9
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,16 +140,18 @@ jobs:
- name: Stop All Containers in syg resource Group
run: |
# Obtener todos los contenedores en el grupo de recursos
containers=$(az container list --resource-group syg-demo --query "[].name" --output tsv)
# Recorrer cada contenedor y detenerlo
for container in $containers; do
az container stop --name $container --resource-group syg-demo
done
az container stop --name syg-docker-db --resource-group syg-demo
az container stop --name syg-backend --resource-group syg-demo
az container stop --name syg-keycloak --resource-group syg-demo
az container stop --name syg-frontend --resource-group syg-demo
az container stop --name syg-prometheus --resource-group syg-demo
az container stop --name syg-grafana --resource-group syg-demo
- name: Start All Containers in syg resource Group
run: |
# Recorrer cada contenedor y arrancarlo
for container in $containers; do
az container start --name $container --resource-group syg-demo
done
az container start --name syg-docker-db --resource-group syg-demo
az container start --name syg-backend --resource-group syg-demo
az container start --name syg-keycloak --resource-group syg-demo
az container start --name syg-frontend --resource-group syg-demo
az container start --name syg-prometheus --resource-group syg-demo
az container start --name syg-grafana --resource-group syg-demo

0 comments on commit 1cfc6c9

Please sign in to comment.