Skip to content

Commit

Permalink
[BE] refactor: test용 출력 추가 (#24)
Browse files Browse the repository at this point in the history
Signed-off-by: EunJiJung <[email protected]>
  • Loading branch information
bianbbc87 committed Feb 9, 2025
1 parent fa6956f commit 1ab4d67
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/actions/ecr-push/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,23 @@ runs:
docker push $FULL_ECR_PATH:$IMAGE_TAG
echo "Build & Push completed!"
- name: Debug AWS Credentials
run: aws sts get-caller-identity

- name: Manually Set AWS Credentials
run: |
export AWS_ACCESS_KEY_ID=${{ inputs.aws_access_key_id }}
export AWS_SECRET_ACCESS_KEY=${{ inputs.aws_secret_access_key }}
export AWS_REGION=${{ inputs.aws_region }}
aws sts get-caller-identity
- name: EC2에서 ECR에 로그인하기
uses: appleboy/ssh-action@master
with:
host: ${{ inputs.ec2_ip }}
username: ${{ inputs.ec2_username }}
key: ${{ inputs.ec2_ssh_key }}
port: 22
script: |
aws ecr get-login-password --region ${{ inputs.aws_region }} | sudo docker login --username AWS --password-stdin ${{ inputs.ecr_uri }}
Expand Down

0 comments on commit 1ab4d67

Please sign in to comment.