Skip to content

Commit

Permalink
test(gha-build-ecr): detached to get logs
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandoataoldotcom authored Oct 15, 2023
1 parent b4f5724 commit a7927da
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test-action-on-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ jobs:
echo $(aws ecr get-login-password --region $AWS_REGION) \
| docker login --username AWS --password-stdin $ECR_REGISTRY
docker pull $ECR_REGISTRY/$TEST_IMAGE_NAME:${{ github.sha }}
docker run $ECR_REGISTRY/$TEST_IMAGE_NAME:${{ github.sha }}
docker logs $(docker ps -aq | head -n 1)
docker run -d --name test_container $ECR_REGISTRY/$TEST_IMAGE_NAME:c276e5affa360697c575b5fa578438981d188790
docker logs test_container
# docker run $ECR_REGISTRY/$TEST_IMAGE_NAME:${{ github.sha }}
# # Test Docker.io
# # ... similar structure ...

0 comments on commit a7927da

Please sign in to comment.