Skip to content

Commit

Permalink
Build & start in check image works step, rather than just start ; Wai…
Browse files Browse the repository at this point in the history
…t accordingly.
  • Loading branch information
diox committed Jan 7, 2025
1 parent fbe3c63 commit facb651
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,8 @@ jobs:
- run:
name: Check image works
command: |
docker run --rm -p 4000:4000 -d -e NODE_ENV=production -e NODE_CONFIG_ENV=prod addons-frontend
sleep 30
docker run --rm -p 4000:4000 -d -e NODE_ENV=production -e NODE_CONFIG_ENV=prod addons-frontend sh -c "yarn build && yarn start"
sleep 60
curl --retry 3 --retry-delay 2 http://127.0.0.1:4000/__frontend_lbheartbeat__
- run:
name: Push to repo
Expand Down Expand Up @@ -332,8 +332,8 @@ jobs:
- run:
name: Check image works
command: |
docker run --rm -p 4000:4000 -d -e NODE_ENV=production -e NODE_CONFIG_ENV=prod addons-frontend
sleep 30
docker run --rm -p 4000:4000 -d -e NODE_ENV=production -e NODE_CONFIG_ENV=prod addons-frontend sh -c "yarn build && yarn start"
sleep 60
curl --retry 3 --retry-delay 2 http://127.0.0.1:4000/__frontend_lbheartbeat__
- run:
name: Push to repo
Expand Down

0 comments on commit facb651

Please sign in to comment.