Skip to content

Commit

Permalink
try building the image without pushing
Browse files Browse the repository at this point in the history
  • Loading branch information
papey committed Oct 4, 2024
1 parent dc58a70 commit f47c8bc
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/docker_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
push:
branches:
- main
- add-curl-check-before-pushing-image # to be cleaned up before merging

jobs:
docker_push:
Expand All @@ -25,4 +26,15 @@ jobs:
- run: |
aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/doctolib
cd neurow
docker buildx build . --build-arg GIT_COMMIT_SHA1=${{ github.event.pull_request.head.sha || github.event.after || github.sha }} --push -t public.ecr.aws/doctolib/neurow:latest -t public.ecr.aws/doctolib/neurow:latest -t public.ecr.aws/doctolib/neurow:${{ github.event.pull_request.head.sha || github.event.after || github.sha }}
docker buildx build . --build-arg GIT_COMMIT_SHA1=${{ github.event.pull_request.head.sha || github.event.after || github.sha }} --load -t neurow:test
docker run -d --name neurow_test neurow:test
sleep 5
# Check if API is responding to requests
# Push if responding, exit with error otherwise
docker stop neurow_test
docker rm neurow_test

0 comments on commit f47c8bc

Please sign in to comment.