Skip to content

Commit

Permalink
Fix: not to specify username for ssh connecting to EC2
Browse files Browse the repository at this point in the history
  • Loading branch information
jimin-kiim committed May 30, 2024
1 parent 0cc9d90 commit 1aec03b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:

- name: Get current time
run: echo "CURRENT_TIME=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_ENV

- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
Expand All @@ -71,7 +71,7 @@ jobs:
uses: appleboy/[email protected]
with:
host: ${{ secrets.EC2_HOST }}
username: ubuntu
username: ${{ secrets.EC2_USERNAME }}
key: ${{ secrets.EC2_SSH_KEY }}
script: |
docker login -u "${{ secrets.DOCKER_USERNAME }}" -p "${{ secrets.DOCKER_PASSWORD }}"
Expand Down

0 comments on commit 1aec03b

Please sign in to comment.