build(config.yml): reorder steps

This commit is contained in:
Krrish Dholakia 2024-01-10 17:27:45 +05:30
parent 4de9a1541d
commit 100fa97cc2

View file

@ -113,12 +113,12 @@ jobs:
sudo wget https://github.com/jwilder/dockerize/releases/download/v0.6.1/dockerize-linux-amd64-v0.6.1.tar.gz
sudo tar -C /usr/local/bin -xzvf dockerize-linux-amd64-v0.6.1.tar.gz
sudo rm dockerize-linux-amd64-v0.6.1.tar.gz
- run:
name: Wait for app to be ready
command: dockerize -wait http://localhost:4000 -timeout 1m
- run:
name: Display container logs
command: docker logs my-app
- run:
name: Wait for app to be ready
command: dockerize -wait http://localhost:4000 -timeout 1m
- run:
name: Test the application
command: curl -s "http://localhost:4000/health/readiness"