From 2113c75d65d1aa103cf003f3158104848917ea19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=EC=9E=AC=ED=95=9C?= <99114456+jaehan4707@users.noreply.github.com> Date: Sun, 21 Jul 2024 16:05:04 +0900 Subject: [PATCH] =?UTF-8?q?setting:=20job=20=EB=8F=84=EC=BB=A4=20=EC=9D=B4?= =?UTF-8?q?=EB=AF=B8=EC=A7=80,=20=EB=B9=8C=EB=93=9C=20=EA=B0=99=EC=9D=B4?= =?UTF-8?q?=20=EC=A7=84=ED=96=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/mimo-deploy.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/mimo-deploy.yml b/.github/workflows/mimo-deploy.yml index c28b6e1..9a91acd 100644 --- a/.github/workflows/mimo-deploy.yml +++ b/.github/workflows/mimo-deploy.yml @@ -51,7 +51,7 @@ jobs: - name: Log in to Docker Hub run: echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin - build-docker-image: + build-and-push-docker-image: runs-on: ubuntu-latest needs: docker-login steps: @@ -78,16 +78,12 @@ jobs: - name: Build the Docker image run: docker build -t ${{ secrets.DOCKER_REPO }} . - push-docker-image: - runs-on: ubuntu-latest - needs: build-docker-image - steps: - name: Push the Docker image run: docker push ${{ secrets.DOCKER_REPO }} deploy-ec2-server: runs-on: ubuntu-latest - needs: push-docker-image + needs: build-and-push-docker-image steps: - name: Deploy to EC2 Server uses: appleboy/ssh-action@master