Skip to content

Commit

Permalink
fix: aws access key 수정
Browse files Browse the repository at this point in the history
related issue #561
  • Loading branch information
jun02160 committed Dec 8, 2024
1 parent 9e2a95a commit a78db40
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/cd-to-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,15 @@ on:
types: [deploy-to-test-event]
push:
branches: [ develop ]
pull_request:
types: [ edited ]

env:
ECR_APP_NAME: ${{ secrets.ECR_APP_NAME }}-dev
SPRING_PROFILES_ACTIVE: dev
ECR_APP_NAME: ${{ secrets.ECR_APP_NAME }}-$SPRING_PROFILES_ACTIVE
ECR_REPO: ${{ secrets.ECR_HOST }}/$ECR_APP_NAME
GREEN_SERVER_IMAGE: $ECR_REPO
BLUE_SERVER_IMAGE: ${ECR_REPO}:amd64
GREEN_SERVER_IMAGE: $ECR_REPO:amd64
BLUE_SERVER_IMAGE: $ECR_REPO:amd64

jobs:
build:
Expand All @@ -41,12 +44,13 @@ jobs:
- name: 'Check Java Version'
run: |
java --version
echo 'ecr repo is $ECR_REPO'
- name: Configure AWS credentials
- name: 'Configure AWS credentials'
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID__TEAM_PLAYGROUND }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY__TEAM_PLAYGROUND }}
aws-region: ap-northeast-2

- name: 'Get application.yml from AWS S3'
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ services:
- "8080:8080"
environment:
- TZ=Asia/Seoul
- SPRING_PROFILES_ACTIVE=${SPRING_PROFILES_ACTIVE}

# green-server:
# container_name: green-server
Expand Down

0 comments on commit a78db40

Please sign in to comment.