Skip to content

Commit

Permalink
Merge pull request #122 from Trycatch-tv/dev
Browse files Browse the repository at this point in the history
.
  • Loading branch information
judlup authored Jul 25, 2024
2 parents c3197da + 13dc7f4 commit e6f25ac
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,19 @@ jobs:
# Iniciar sesión en Amazon ECR
aws ecr get-login-password --region $AWS_REGION | docker login --username AWS --password-stdin $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com
# Crear un archivo .env con las variables de entorno necesarias
# echo "DATABASE_HOST=${{secrets.DATABASE_NAME}}" > .env
# echo "DATABASE_PORT=${{secrets.DATABASE_PORT}}" >> .env
# echo "DATABASE_USER=${{secrets.DATABASE_USER}}" >> .env
# echo "DATABASE_PASSWORD=${{secrets.DATABASE_PASSWORD}}" >> .env
# echo "DATABASE_NAME=${{secrets.DATABASE_NAME}}" >> .env
# echo "FILE_SERVICE_URL=${{secrets.FILE_SERVICE_URL}}" >> .env
# echo "REVIEW_SERVICE_URL=${{secrets.REVIEW_SERVICE_URL}}" >> .env
# echo "NODE_ENV=${{secrets.NODE_ENV}}" >> .env
# echo "POSTGRES_USER=${{secrets.POSTGRES_USER}}" >> .env
# echo "POSTGRES_PASSWORD=${{secrets.POSTGRES_PASSWORD}}" >> .env
# echo "POSTGRES_DB=${{secrets.POSTGRES_DB}}" >> .env
# echo "AWS_ACCOUNT_ID=${{secrets.AWS_ACCOUNT_ID}}" >> .env
# echo "AWS_REGION=${{secrets.AWS_REGION}}" >> .env
echo "DATABASE_HOST=${{secrets.DATABASE_NAME}}" > .env
echo "DATABASE_PORT=${{secrets.DATABASE_PORT}}" >> .env
echo "DATABASE_USER=${{secrets.DATABASE_USER}}" >> .env
echo "DATABASE_PASSWORD=${{secrets.DATABASE_PASSWORD}}" >> .env
echo "DATABASE_NAME=${{secrets.DATABASE_NAME}}" >> .env
echo "FILE_SERVICE_URL=${{secrets.FILE_SERVICE_URL}}" >> .env
echo "REVIEW_SERVICE_URL=${{secrets.REVIEW_SERVICE_URL}}" >> .env
echo "NODE_ENV=${{secrets.NODE_ENV}}" >> .env
echo "POSTGRES_USER=${{secrets.POSTGRES_USER}}" >> .env
echo "POSTGRES_PASSWORD=${{secrets.POSTGRES_PASSWORD}}" >> .env
echo "POSTGRES_DB=${{secrets.POSTGRES_DB}}" >> .env
echo "AWS_ACCOUNT_ID=${{secrets.AWS_ACCOUNT_ID}}" >> .env
echo "AWS_REGION=${{secrets.AWS_REGION}}" >> .env
# Hacer pull de los cambios en la imagen docker
docker pull ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com/glasscamp-backend:latest
Expand Down
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ services:
backend:
# build: .
image: ${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_REGION}.amazonaws.com/glasscamp-backend:latest
# image: glasscamp-backend:latest
container_name: backend
env_file:
- .env
Expand Down

0 comments on commit e6f25ac

Please sign in to comment.