From 2de568cb7146301e5e871098e9c529f6054a12a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EB=AF=BC?= <144198706+Minn-Choi@users.noreply.github.com> Date: Mon, 4 Nov 2024 16:32:07 +0900 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ee61ec3..91d99bf 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,10 +1,9 @@ -# deploy.yml name: Deploy Vue.js to EC2 on: push: branches: - - main # main 브랜치에 push될 때 트리거 + - main jobs: build: @@ -22,7 +21,6 @@ jobs: - name: Push Docker image to Docker Hub run: | - docker tag ${{ secrets.DOCKER_USERNAME }}/my-vue-app:latest ${{ secrets.DOCKER_USERNAME }}/my-vue-app:latest docker push ${{ secrets.DOCKER_USERNAME }}/my-vue-app:latest deploy: @@ -41,4 +39,4 @@ jobs: docker pull ${{ secrets.DOCKER_USERNAME }}/my-vue-app:latest docker stop my-vue-app || true docker rm my-vue-app || true - docker run -d -p 80:80 —name my-vue-app ${{ secrets.DOCKER_USERNAME }}/my-vue-app:latest + docker run -d -p 80:80 --name my-vue-app ${{ secrets.DOCKER_USERNAME }}/my-vue-app:latest