Skip to content

Commit

Permalink
ci: add step to expose environment variable
Browse files Browse the repository at this point in the history
本番では api:8080 に行ってほしい and だからといって
.env.production をコミットするのがしのびないので
これでお茶を濁す
  • Loading branch information
h-takeyeah committed Apr 7, 2024
1 parent 9329350 commit 5b99c78
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ jobs:
registry: ghcr.io
username: su-its
password: ${{ secrets.GITHUB_TOKEN }}
# FIXME: できることなら NEXT_PUBLIC_ は使いたくない
- name: Prepare environment variable file
working-directory: typing-app
run: echo 'NEXT_PUBLIC_API_URL=${{ secrets.PROD_NEXT_PUBLIC_API_URL }}' >> .env.production
- name: Docker Buildx Bake
uses: docker/bake-action@v4
with:
Expand Down

0 comments on commit 5b99c78

Please sign in to comment.