diff --git a/.github/workflows/prod-cd.yml b/.github/workflows/prod-cd.yml index 7f6adfdd..ebd7e62f 100644 --- a/.github/workflows/prod-cd.yml +++ b/.github/workflows/prod-cd.yml @@ -109,12 +109,12 @@ jobs: run: docker push ${{ secrets.DOCKER_HUB_USERNAME }}/${{ secrets.IMAGE_NAME }}:${{ secrets.PROD_TAG }} - name: 인스턴스 접속 및 배포 스크립트 실행 - uses: appleboy/ssh-action@master + uses: appleboy/ssh-action@v0.0 with: host: ${{ secrets.PROD_EC2_HOST }} + port: 22 username: ${{ secrets.PROD_EC2_USERNAME }} key: ${{ secrets.PROD_EC2_PRIVATE_KEY }} - port: ${{ secrets.PROD_EC2_PORT }} script_stop: true script: | docker stop "${{ secrets.PROD_CONTAINER_NAME }}"