-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (32 loc) · 899 Bytes
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: ORAssistant CI
run-name: ${{ github.actor }} started CI
on:
push:
branches:
- master
pull_request:
jobs:
build-backend-docker:
runs-on: self-hosted
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup prereqs
run: make init-dev
- name: Run formatting checks
run: |
make format
make check
- name: Populate environment variables
run: |
cp backend/.env.example backend/.env
sed -i 's|{{GOOGLE_API_KEY}}|${{ secrets.GOOGLE_API_KEY }}|g' backend/.env
sed -i 's|{{PATH_TO_GOOGLE_APPLICATION_CREDENTIALS}}|src/secret.json|g' backend/.env
cp ${{ secrets.PATH_TO_GOOGLE_APPLICATION_CREDENTIALS }} backend/src
- name: Build Docker image
run: |
make docker
- name: Teardown
if: always()
run: |
docker compose down --remove-orphans