build-test #22
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
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: Docker Compose Up | |
run: docker-compose -f docker-compose.prod.yml up -d view api |