Skip to content

Commit

Permalink
modify(#81): workflow 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hobiJeong committed Nov 14, 2023
1 parent 0e6a2a4 commit 4366887
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 58 deletions.
52 changes: 0 additions & 52 deletions .github/workflow/ma6-main.yml

This file was deleted.

12 changes: 6 additions & 6 deletions .github/workflows/ma6-main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ma6-main-back
name: ma6-main-front

on:
push:
Expand All @@ -23,7 +23,7 @@ jobs:
run: |
npm install
npm run build
docker build --platform linux/amd64 -t ${{ secrets.DOCKER_IMAGE_NAME }}:latest .
sudo docker build --platform linux/amd64 -t ${{ secrets.DOCKER_IMAGE_NAME }}:latest .
- name: Login to Docker Hub
uses: docker/login-action@v1
Expand All @@ -32,7 +32,7 @@ jobs:
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Push Docker image
run: docker push ${{ secrets.DOCKER_IMAGE_NAME }}:latest
run: sudo docker push ${{ secrets.DOCKER_IMAGE_NAME }}:latest

deploy:
needs: build
Expand All @@ -47,6 +47,6 @@ jobs:

- name: Docker run
run: |
docker pull ${{ secrets.DOCKER_IMAGE_NAME }}:latest
docker-compose down
docker-compose up --force-recreate --build -d
sudo docker pull ${{ secrets.DOCKER_IMAGE_NAME }}:latest
sudo docker-compose down
sudo docker-compose up --force-recreate --build -d

0 comments on commit 4366887

Please sign in to comment.