Skip to content

Commit

Permalink
fix : deploy 명령어 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
jiji-hoon96 committed Aug 11, 2024
1 parent 33ffbec commit 8df3001
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Build, tag, and push image to Amazon ECR
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: your-ecr-repo-name
ECR_REPOSITORY: dnd-frontend
IMAGE_TAG: ${{ github.sha }}
run: |
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
Expand All @@ -44,7 +44,7 @@ jobs:
- name: Deploy to EC2
env:
PRIVATE_KEY: ${{ secrets.EC2_SSH_PRIVATE_KEY }}
HOST: your-ec2-instance-public-dns
HOST: ec2-3-37-96-225.ap-northeast-2.compute.amazonaws.com
USER: ec2-user
run: |
echo "$PRIVATE_KEY" > private_key && chmod 600 private_key
Expand Down

0 comments on commit 8df3001

Please sign in to comment.