Skip to content

Commit

Permalink
Merge pull request #103 from Trycatch-tv/dev
Browse files Browse the repository at this point in the history
.
  • Loading branch information
judlup authored Jun 2, 2024
2 parents 6b8ab62 + 8f4551e commit 731ebc7
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 731ebc7

Please sign in to comment.