Skip to content

Commit

Permalink
[fix] github actions yml 수정
Browse files Browse the repository at this point in the history
불필요한 단계 제거 및 환경변수 전달
  • Loading branch information
2522001 committed Jun 1, 2024
1 parent fc05c77 commit 6791eeb
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ jobs:
- name: Install dependencies
run: npm install

- name: Build Next.js app
run: npm run build
env:
NEXT_PUBLIC_API_URL: ${{ secrets.NEXT_PUBLIC_API_URL }}

- name: Login to DockerHub
uses: docker/login-action@v3
with:
Expand All @@ -49,6 +44,7 @@ jobs:
docker stop issue-tracking-system-nextjs || true
docker rm issue-tracking-system-nextjs || true
docker run -d -p 80:3000 --name issue-tracking-system-nextjs \
-e NEXT_PUBLIC_API_URL=${{ secrets.NEXT_PUBLIC_API_URL }} \
${{ secrets.DOCKERHUB_USERNAME }}/issue-tracking-system-nextjs:latest
sleep 10
docker logs issue-tracking-system-nextjs
docker logs issue-tracking-system-nextjs

0 comments on commit 6791eeb

Please sign in to comment.