diff --git a/.github/workflows/dev-CD.yml b/.github/workflows/dev-CD.yml index 6103ae2a..efcd8b40 100644 --- a/.github/workflows/dev-CD.yml +++ b/.github/workflows/dev-CD.yml @@ -73,4 +73,19 @@ jobs: run: | docker build --platform linux/amd64 -t makerscrew/server . docker push makerscrew/server - working-directory: ${{ env.working-directory-nestjs }} \ No newline at end of file + working-directory: ${{ env.working-directory-nestjs }} + + deploy-cd: + needs: deploy-ci + runs-on: ubuntu-22.04 + + steps: + - name: 도커 컨테이너 실행 + uses: appleboy/ssh-action@master + with: + host: ${{ secrets.DEV_SERVER_IP }} + username: ${{ secrets.DEV_SERVER_USER }} + key: ${{ secrets.DEV_SERVER_KEY }} + script: | + cd ~ + ./deploy.sh \ No newline at end of file