Skip to content

Commit

Permalink
feat: 환경변수 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
miro-ring committed Mar 23, 2024
1 parent 3f031da commit bfa6263
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- feature/BAR-277

env:
REGISTRY: ${{ secrets.AWS_ECR_REGISTRY_2 }}
REGISTRY: ${{ secrets.AWS_ECR_REGISTRY }}
AWS_REGION: ap-northeast-2
IMAGE_NAME: baro

Expand All @@ -22,8 +22,8 @@ jobs:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_2 }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_2 }}
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ env.AWS_REGION }}

- name: Login to Amazon ECR
Expand Down Expand Up @@ -52,9 +52,9 @@ jobs:
IMAGE_TAG: ${{ github.sha }}
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.EC2_PUBLIC_DOMAIN_2 }}
host: ${{ secrets.EC2_PUBLIC_DOMAIN }}
username: ubuntu
key: ${{ secrets.EC2_SSH_PRIVATE_KEY_2 }}
key: ${{ secrets.EC2_SSH_PRIVATE_KEY }}
envs: REGISTRY,REPOSITORY,IMAGE_TAG,AWS_REGION,IMAGE_NAME
script: |-
aws ecr get-login-password --region ${{ env.AWS_REGION }} |
Expand Down

0 comments on commit bfa6263

Please sign in to comment.