From 83eb94e34d2c233cade096a338a42606a05d38d8 Mon Sep 17 00:00:00 2001 From: gurdl7011 Date: Mon, 13 Nov 2023 09:09:12 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20::?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 61cc87c..efc0dff 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -35,8 +35,8 @@ jobs: username: ${{ secrets.EC2_USERNAME }} key: ${{ secrets.EC2_SSH_KEY }} script: | + docker pull ${{ secrets.DOCKER_REPOSITORY }} docker stop ${{ secrets.SERVER_NAME }} docker rm ${{ secrets.SERVER_NAME }} - docker pull ${{ secrets.DOCKER_REPOSITORY }} docker run -dp ${{ secrets.HOST_PORT }}:${{ secrets.DOCKER_CONTAINER_PORT }} --name ${{ secrets.SERVER_NAME }} --env-file ${{ secrets.ENV_PATH }} ${{ secrets.DOCKER_REPOSITORY }} docker rmi $(docker images -f "dangling=true" -q) \ No newline at end of file