Skip to content

Commit

Permalink
update docker compose for cicd
Browse files Browse the repository at this point in the history
  • Loading branch information
nisab zahid committed Nov 19, 2024
1 parent 4ebf237 commit 925f8ff
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,23 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Install Docker Compose
run: |
sudo apt-get update
sudo apt-get install -y docker-compose-plugin
docker compose version
- name: Build Docker image
run: |
docker-compose build
docker compose build
- name: Test Docker Compose
run: |
docker-compose up -d
docker compose up -d
sleep 30
docker-compose ps
curl --retry 10 --retry-delay 5 --retry-connrefused http://localhost:8000/health/ || docker-compose logs
docker-compose down
docker compose ps
curl --retry 10 --retry-delay 5 --retry-connrefused http://localhost:8000/health/ || docker compose logs
docker compose down
deploy:
needs: build
Expand Down

0 comments on commit 925f8ff

Please sign in to comment.