Skip to content

Commit

Permalink
Fix: develop.yml 들여쓰기
Browse files Browse the repository at this point in the history
  • Loading branch information
su-hwani committed May 5, 2024
1 parent 29ad0fe commit d457d36
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,30 +49,30 @@ jobs:
frontend-build-and-push:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
steps:
- uses: actions/checkout@v3

- name: Check Node v # Node v 확인
run: node -v
- name: Check Node v # Node v 확인
run: node -v

- name: Make Frontend .env
run: |
cd ./frontend/.env
echo "" > ./.env # 기존 내용 모두 삭제
echo "${{ secrets.FRONTEND_ENV_API_ROOT }}" >> ./.env
- name: Yarn Install Dependencies # 의존 파일 설치
run: yarn install --frozen-lockfile

- name: Yarn Build # React Build
run: yarn build
- name: Make Frontend .env
run: |
cd ./frontend/.env
echo "" > ./.env # 기존 내용 모두 삭제
echo "${{ secrets.FRONTEND_ENV_API_ROOT }}" >> ./.env
- name: Frontend Docker build & push to docker repo
run: |
cd frontend
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
docker build -f Dockerfile -t ${{ secrets.DOCKER_FRONTEND_REPO }}:latest .
docker push ${{ secrets.DOCKER_FRONTEND_REPO }}:latest
- name: Yarn Install Dependencies # 의존 파일 설치
run: yarn install --frozen-lockfile

- name: Yarn Build # React Build
run: yarn build

- name: Frontend Docker build & push to docker repo
run: |
cd frontend
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
docker build -f Dockerfile -t ${{ secrets.DOCKER_FRONTEND_REPO }}:latest .
docker push ${{ secrets.DOCKER_FRONTEND_REPO }}:latest
pull-and-deploy:
needs: build-and-push
Expand Down

0 comments on commit d457d36

Please sign in to comment.