Skip to content

Commit

Permalink
環境変数ファイルが読み込まれなかったので位置を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
AobaIwaki123 committed Mar 19, 2024
1 parent 9dd3a15 commit d0cfde5
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,19 @@ run-name: docker-yarn-build-test
on: [push, pull_request]

jobs:

create-envfile:
test:
name: Build Test
runs-on: ubuntu-latest

steps:
- name: Make envfile for view
- name: Create envfile for view
uses: SpicyPizza/[email protected]
with:
envkey_NEXT_PUBLIC_API_ACCESS_ID: ${{ secrets.NEXT_PUBLIC_API_ACCESS_ID }}
envkey_NEXT_PUBLIC_API_ACCESS_KEY: ${{ secrets.NEXT_PUBLIC_API_ACCESS_KEY }}
envkey_NEXT_PUBLIC_API_URL: ${{ secrets.NEXT_PUBLIC_API_URL }}
file_name: view.env

- name: Make envfile for api
- name: Create envfile for api
uses: SpicyPizza/[email protected]
with:
envkey_OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
Expand All @@ -28,10 +27,6 @@ jobs:
envkey_IMAGE_MODEL_CHATGPT: ${{ secrets.IMAGE_MODEL_CHATGPT }}
file_name: api.env

test:
name: Build Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Docker Compose Build
run: docker-compose -f docker-compose.prod.yml build
Expand Down

0 comments on commit d0cfde5

Please sign in to comment.