Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Minn-Choi authored Nov 4, 2024
1 parent 2becd12 commit 2de568c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# deploy.yml
name: Deploy Vue.js to EC2

on:
push:
branches:
- main # main ๋ธŒ๋žœ์น˜์— push๋  ๋•Œ ํŠธ๋ฆฌ๊ฑฐ
- main

jobs:
build:
Expand All @@ -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:
Expand All @@ -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

0 comments on commit 2de568c

Please sign in to comment.