From f27f2888d89ece593a3fe151309b8fd0f0947b16 Mon Sep 17 00:00:00 2001 From: gurdl7011 Date: Mon, 13 Nov 2023 09:30:13 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20::?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cd.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index aa8fe9c..1951540 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -27,7 +27,7 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - - name: Deploy For EC2 # EC2 ssh 접속 + - name: Deploy For EC2 uses: appleboy/ssh-action@master with: host: ${{ secrets.EC2_HOST }} @@ -36,7 +36,7 @@ jobs: key: ${{ secrets.EC2_SSH_KEY }} script: | docker pull ${{ secrets.DOCKER_REPOSITORY }} - docker stop ${{ secrets.SERVER_NAME }} - docker rm ${{ secrets.SERVER_NAME }} - docker run -dp ${{ secrets.HOST_PORT }}:${{ secrets.DOCKER_CONTAINER_PORT }} --name ${{ secrets.SERVER_NAME }} --env-file ${{ secrets.ENV_PATH }} ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_REPOSITORY }} + docker stop onui-server + docker rm onui-server + docker run -dp ${{ secrets.HOST_PORT }}:${{ secrets.DOCKER_CONTAINER_PORT }} --name onui-server --env-file .env ${{ secrets.DOCKER_REPOSITORY }} docker rmi $(docker images -f "dangling=true" -q) \ No newline at end of file