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 4366887 commit a68ec73
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ma6-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
run: |
npm install
npm run build
sudo docker build --platform linux/amd64 -t ${{ secrets.DOCKER_IMAGE_NAME }}:latest .
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: sudo docker push ${{ secrets.DOCKER_IMAGE_NAME }}:latest
run: docker push ${{ secrets.DOCKER_IMAGE_NAME }}:latest

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

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

0 comments on commit a68ec73

Please sign in to comment.