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 <adodon@cisco.com>
  • Loading branch information
adodon2go committed Oct 27, 2023
1 parent d2fbd27 commit 094182e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/tls.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,15 @@ jobs:
../scripts/gen_certs.sh
htpasswd -bBn test test123 > htpasswd
- name: Check for TLS settings
continue-on-error: true
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
4 changes: 2 additions & 2 deletions examples/config-tls.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"port": "8080",
"realm": "zot",
"tls": {
"cert": "../../test/data/server.cert",
"key": "../../test/data/server.key"
"cert": "test/data/server.cert",
"key": "test/data/server.key"
}
},
"log": {
Expand Down

0 comments on commit 094182e

Please sign in to comment.