From 6fdc27336e330b415ea98cdbf3facb1a8370cf24 Mon Sep 17 00:00:00 2001 From: wjddn2165 Date: Mon, 29 Jul 2024 21:42:25 +0900 Subject: [PATCH] docker github action test --- .github/workflows/deploy.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 019a0165..d11f7b48 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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/ssh-action@v0.1.8 with: host: ${{ secrets.EC2_HOST }} username: ubuntu - key: /tmp/ssh_key + key: ${{ secrets.EC2_SECRET }} script: | cd /home/ubuntu/spring-boot docker-compose pull