Skip to content

Commit

Permalink
fix: ci 'TLS check' job is broken
Browse files Browse the repository at this point in the history
Signed-off-by: Alexei Dodon <[email protected]>
  • Loading branch information
adodon2go committed Oct 27, 2023
1 parent d2fbd27 commit 5f01c3b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/tls.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,12 @@ jobs:
run: |
cd $GITHUB_WORKSPACE
make binary
bin/zot-linux-amd64 serve examples/config-tls.json &
bin/zot-linux-amd64 serve examples/config-tls.json & echo $! > zot.PID
sleep 5
# Check if zot server is running
cat /proc/$(cat zot.PID)/status | grep State || exit 1
# zot server is running: proceed to testing
curl -kv --tls-max 1.0 -0 https://localhost:8080/v2/
if [[ "$?" -eq 0 ]]; then echo "TLSv1.0 detected"; exit 1; fi
curl -kv --tls-max 1.1 -0 https://localhost:8080/v2/
Expand Down

0 comments on commit 5f01c3b

Please sign in to comment.