Skip to content

Commit

Permalink
Check docker builds in CI (#9)
Browse files Browse the repository at this point in the history
* Check docker builds in CI

* Update docker-compose.yml

* add env
  • Loading branch information
IndrajeetPatil authored Oct 24, 2024
1 parent 5f8b2b6 commit 7d02986
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Docker Build Checks

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Install Docker Compose
run: |
sudo apt-get update
sudo apt-get install -y docker-compose
- name: Create .env file
run: |
echo AZURE_OPENAI_ENDPOINT=${{ secrets.AZURE_OPENAI_ENDPOINT }} >> server/.env
echo AZURE_OPENAI_API_KEY=${{ secrets.AZURE_OPENAI_API_KEY }} >> server/.env
echo AZURE_OPENAI_API_VERSION=${{ secrets.AZURE_OPENAI_API_VERSION }} >> server/.env
- name: Build and test services
run: |
docker-compose build
docker-compose up -d
docker-compose ps
docker-compose logs
docker-compose down

0 comments on commit 7d02986

Please sign in to comment.