-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #113 from sharehouse-sanhaimu/feat/aiwaki/cicd
[CICD] Build Test を行うWorkflowsを追加
- Loading branch information
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Build Test | ||
run-name: build-test | ||
on: [pull_request] | ||
|
||
jobs: | ||
test: | ||
name: Build Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- 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: Create envfile for api | ||
uses: SpicyPizza/[email protected] | ||
with: | ||
envkey_OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | ||
envkey_DEEPL_AUTH_KEY: ${{ secrets.DEEPL_AUTH_KEY }} | ||
envkey_API_ACCESS_ID: ${{ secrets.API_ACCESS_ID }} | ||
envkey_API_ACCESS_KEY: ${{ secrets.API_ACCESS_KEY }} | ||
envkey_ACSESS_ALLOW_URL: ${{ secrets.ACSESS_ALLOW_URL }} | ||
envkey_EXECUTING_ENVIRONMENT: ${{ secrets.EXECUTING_ENVIRONMENT }} | ||
envkey_IMAGE_MODEL_CHATGPT: ${{ secrets.IMAGE_MODEL_CHATGPT }} | ||
file_name: api.env | ||
|
||
- name: Docker Compose Build | ||
run: docker-compose -f docker-compose.prod.yml build | ||
- name: Yarn Install | ||
run: docker compose -f docker-compose.prod.yml run --rm view yarn | ||
- name: Yarn Build | ||
run: docker compose -f docker-compose.prod.yml run --rm view yarn build | ||
- name: Docker Compose Up | ||
run: docker-compose -f docker-compose.prod.yml up -d view api |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters