mirror of
https://github.com/project-zot/zot.git
synced 2026-06-17 04:48:26 +08:00
refactor: Reduce binary size of zot-minimal; Added CI check for binary size (#1758)
Signed-off-by: Alexei Dodon <adodon@cisco.com>
This commit is contained in:
@@ -12,10 +12,6 @@ permissions: read-all
|
||||
jobs:
|
||||
tls-check:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
os: [linux]
|
||||
arch: [amd64]
|
||||
name: TLS check
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -36,8 +32,8 @@ jobs:
|
||||
continue-on-error: true
|
||||
run: |
|
||||
cd $GITHUB_WORKSPACE
|
||||
make OS=$OS ARCH=$ARCH binary
|
||||
bin/zot-$OS-$ARCH serve examples/config-tls.json &
|
||||
make binary
|
||||
bin/zot-linux-amd64 serve examples/config-tls.json &
|
||||
sleep 5
|
||||
curl -kv --tls-max 1.0 -0 https://localhost:8080/v2/
|
||||
if [[ "$?" -eq 0 ]]; then echo "TLSv1.0 detected"; exit 1; fi
|
||||
@@ -45,6 +41,3 @@ jobs:
|
||||
if [[ "$?" -eq 0 ]]; then echo "TLSv1.1 detected"; exit 1; fi
|
||||
curl -kv --tls-max 1.2 -0 https://localhost:8080/v2/
|
||||
if [[ "$?" -ne 0 ]]; then echo "TLSv1.2 missing"; exit 1; fi
|
||||
env:
|
||||
OS: ${{ matrix.os }}
|
||||
ARCH: ${{ matrix.arch }}
|
||||
|
||||
Reference in New Issue
Block a user