Skip to content

Commit

Permalink
docker github action test
Browse files Browse the repository at this point in the history
  • Loading branch information
wjddn2165 committed Jul 29, 2024
1 parent 753c1c4 commit 6fdc273
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,13 @@ jobs:
docker buildx build --push --tag ${{ env.DOCKER_HUB_REPOSITORY }}:latest .
working-directory: ${{ env.working-directory }}

- name: Save SSH key
run: |
echo "${{ secrets.EC2_SECRET }}" > /tmp/ssh_key
chmod 600 /tmp/ssh_key

- name: SSH into EC2 and deploy with Docker Compose
uses: appleboy/[email protected]
with:
host: ${{ secrets.EC2_HOST }}
username: ubuntu
key: /tmp/ssh_key
key: ${{ secrets.EC2_SECRET }}
script: |
cd /home/ubuntu/spring-boot
docker-compose pull
Expand Down

0 comments on commit 6fdc273

Please sign in to comment.