Skip to content

Commit

Permalink
add NEXT_PUBLIC_API_URL step
Browse files Browse the repository at this point in the history
  • Loading branch information
Sotatek-TuLe2 committed Jan 7, 2025
1 parent e09bcde commit 7709520
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci-kairos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- feat/add-dockerfile-and-CI

jobs:
deploy:
build-and-push-image-to-ECR:
permissions:
id-token: write
contents: read
Expand Down Expand Up @@ -36,7 +36,10 @@ jobs:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: ${{ vars.ECR_REPOSITORY_KAIROS }}
IMAGE_TAG: ${{ steps.vars.outputs.hash }}
API_URL: ${{ vars.KAIROS_API_URL }}
run: |
echo "NEXT_PUBLIC_API_URL= $API_URL" > .env.production
cat .env.production
docker build -f dockerfile --build-arg VERSION=$IMAGE_TAG -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
docker push $ECR_REGISTRY/$ECR_REPOSITORY -a

0 comments on commit 7709520

Please sign in to comment.