Fix/#140: 중복된 닉네임 입력 시 300ms 간격으로 중복 검사를 반복하던 오류 수정 (#141) #59
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: conceptbe-fe-cd | |
on: | |
push: | |
branches: [develop] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source code. | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: npm install | |
- name: Generate build | |
run: npm run build | |
- name: Docker Image Build | |
run: docker build -t pjhg410/conceptbe-fe . | |
- name: Docker Hub Login | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Docker Hub push | |
run: docker push pjhg410/conceptbe-fe | |
- name: Docker Pull And run | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.WAS_HOST }} | |
username: ${{ secrets.WAS_USERNAME }} | |
password: ${{ secrets.WAS_PASSWORD }} | |
port: ${{ secrets.WAS_SSH_PORT }} | |
script: | | |
docker stop frontend | |
docker rm frontend | |
docker pull pjhg410/conceptbe-fe | |
docker run -d -p 3000:3000 --name frontend pjhg410/conceptbe-fe |