Skip to content

Commit

Permalink
feature: Add env api host
Browse files Browse the repository at this point in the history
  • Loading branch information
junseublim committed Jul 17, 2024
1 parent a6102dc commit 4f721d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set .ENV file
run: echo "API_HOST=${{ secrets.API_HOST }}" > .env
- name: Build docker image
run: docker build -t sonny2024/polabo-fe .
- name: Login to DockerHub
Expand All @@ -28,7 +30,5 @@ jobs:
run: docker pull sonny2024/polabo-fe:latest
- name: Delete existing container
run: docker rm -f polabo-fe || true
- name: Set .ENV file
run: echo "API_HOST=${{ secrets.API_HOST }}" > .env
- name: Run container
run: docker run -d -p 80:3000 --name polabo-fe sonny2024/polabo-fe:latest

0 comments on commit 4f721d0

Please sign in to comment.