Apply docker specialist review: pin image, fresh bases, longer wait
Some checks failed
Build and Deploy UMBRA / build-and-deploy (push) Failing after 12s
Some checks failed
Build and Deploy UMBRA / build-and-deploy (push) Failing after 12s
- Pin deploy container to docker:27-cli (avoid compose version drift) - Add --pull to both docker build commands (keep base images fresh) - Increase health check sleep to 30s (backend start_period is 30s) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
76b19cd33a
commit
618afeb336
@ -20,7 +20,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Build and push backend
|
- name: Build and push backend
|
||||||
run: |
|
run: |
|
||||||
docker build -t ${{ vars.REGISTRY_HOST }}/rohskiddo/umbra-backend:main-latest \
|
docker build --pull \
|
||||||
|
-t ${{ vars.REGISTRY_HOST }}/rohskiddo/umbra-backend:main-latest \
|
||||||
-t ${{ vars.REGISTRY_HOST }}/rohskiddo/umbra-backend:${{ github.sha }} \
|
-t ${{ vars.REGISTRY_HOST }}/rohskiddo/umbra-backend:${{ github.sha }} \
|
||||||
./backend
|
./backend
|
||||||
docker push ${{ vars.REGISTRY_HOST }}/rohskiddo/umbra-backend:main-latest
|
docker push ${{ vars.REGISTRY_HOST }}/rohskiddo/umbra-backend:main-latest
|
||||||
@ -28,7 +29,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Build and push frontend
|
- name: Build and push frontend
|
||||||
run: |
|
run: |
|
||||||
docker build -t ${{ vars.REGISTRY_HOST }}/rohskiddo/umbra-frontend:main-latest \
|
docker build --pull \
|
||||||
|
-t ${{ vars.REGISTRY_HOST }}/rohskiddo/umbra-frontend:main-latest \
|
||||||
-t ${{ vars.REGISTRY_HOST }}/rohskiddo/umbra-frontend:${{ github.sha }} \
|
-t ${{ vars.REGISTRY_HOST }}/rohskiddo/umbra-frontend:${{ github.sha }} \
|
||||||
./frontend
|
./frontend
|
||||||
docker push ${{ vars.REGISTRY_HOST }}/rohskiddo/umbra-frontend:main-latest
|
docker push ${{ vars.REGISTRY_HOST }}/rohskiddo/umbra-frontend:main-latest
|
||||||
@ -45,7 +47,7 @@ jobs:
|
|||||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||||
-v ${{ vars.DEPLOY_PATH }}:/deploy \
|
-v ${{ vars.DEPLOY_PATH }}:/deploy \
|
||||||
-w /deploy \
|
-w /deploy \
|
||||||
docker:cli sh -c "
|
docker:27-cli sh -c "
|
||||||
docker compose pull backend frontend &&
|
docker compose pull backend frontend &&
|
||||||
docker compose up -d --remove-orphans
|
docker compose up -d --remove-orphans
|
||||||
"
|
"
|
||||||
@ -53,7 +55,7 @@ jobs:
|
|||||||
- name: Health check
|
- name: Health check
|
||||||
run: |
|
run: |
|
||||||
echo "Waiting for services to start..."
|
echo "Waiting for services to start..."
|
||||||
sleep 15
|
sleep 30
|
||||||
curl -f http://localhost/health || exit 1
|
curl -f http://localhost/health || exit 1
|
||||||
|
|
||||||
- name: Prune old images
|
- name: Prune old images
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user