Skip to content

Commit

Permalink
build: add new env related with AWS Cloudwatch
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiwon-Woo committed Jan 26, 2024
1 parent dac0bdb commit 3f5ec34
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,8 @@ jobs:
SERVICE_KEY=${{ secrets.OPENAPI_HOLIDAY_SERVICE_KEY }}
SLACK_BOT_USER_OAUTH_ACCESS_TOKEN=${{ secrets.SLACK_BOT_USER_OAUTH_ACCESS_TOKEN_DEV }}
SLACK_CHANNEL_JIPHYEONJEON=${{ secrets.SLACK_CHANNEL_JIPHYEONJEON_DEV }}
AWS_CLOUDWATCH_LOG_GROUP=${{ secrets.AWS_CLOUDWATCH_LOG_GROUP_DEV }}
AWS_CLOUDWATCH_REGION=${{ secrets.AWS_CLOUDWATCH_REGION }}
AWS_CLOUDWATCH_LOG_STREAM_BACKEND=${{ secrets.AWS_CLOUDWATCH_LOG_STREAM_BACKEND }}
FRONT_URL=${{ secrets.FRONT_URL_DEV }}" > .env.dev
docker-compose --env-file .env.dev up -d --build backend_dev
3 changes: 3 additions & 0 deletions .github/workflows/deploy-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,8 @@ jobs:
SERVICE_KEY=${{ secrets.OPENAPI_HOLIDAY_SERVICE_KEY }}
SLACK_BOT_USER_OAUTH_ACCESS_TOKEN=${{ secrets.SLACK_BOT_USER_OAUTH_ACCESS_TOKEN }}
SLACK_CHANNEL_JIPHYEONJEON=${{ secrets.SLACK_CHANNEL_JIPHYEONJEON }}
AWS_CLOUDWATCH_LOG_GROUP=${{ secrets.AWS_CLOUDWATCH_LOG_GROUP }}
AWS_CLOUDWATCH_REGION=${{ secrets.AWS_CLOUDWATCH_REGION }}
AWS_CLOUDWATCH_LOG_STREAM_BACKEND=${{ secrets.AWS_CLOUDWATCH_LOG_STREAM_BACKEND }}
FRONT_URL=${{ secrets.FRONT_URL }}" > .env.prod
docker-compose --env-file .env.prod up -d --build backend
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ services:
logging:
driver: awslogs
options:
awslogs-group: ${AWS_CLOUDWATCH_LOG_GROUP_DEV}
awslogs-group: ${AWS_CLOUDWATCH_LOG_GROUP}
awslogs-region: ${AWS_CLOUDWATCH_REGION}
awslogs-stream: ${AWS_CLOUDWATCH_LOG_STREAM_BACKEND}
test_db:
Expand Down

0 comments on commit 3f5ec34

Please sign in to comment.