Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
judlup committed Jun 2, 2024
1 parent 6bfe639 commit 8f4551e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,13 @@ jobs:
cd /home/${{ secrets.EC2_USER }}/app
# Exportar las variables de entorno
export AWS_ACCOUNT_ID=${{ secrets.AWS_ACCOUNT_ID }}
export AWS_REGION=${{ secrets.AWS_REGION }}
# Iniciar sesión en Amazon ECR
aws ecr get-login-password --region ${{ secrets.AWS_REGION }} | docker login --username AWS --password-stdin ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com
aws ecr get-login-password --region $AWS_REGION | docker login --username AWS --password-stdin $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com
# Actualizar la imagen del servicio backend y reiniciarlo sin afectar db
docker-compose up -d --no-deps --build backend
docker-compose up -d --no-deps --build bootcamp-backend
EOF

0 comments on commit 8f4551e

Please sign in to comment.