mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-30 20:48:23 +01:00
642bb26c39
1. Local image should be removed, otherwise docker 20 will not tigger get manifest request to harbor; 2. E2E image Dockerfile update; 3. Fix nighlty test issue of tag retention, add execution refesh to get result; 4. Fix nighlty test keyword 'Create An New Project And Go Into Project' issue that waiting long enough time for list display; 5. Add nightly test case, in GUI, scan result will show if cve id exist in allow list configuration; 6. Move proxy cache test to schdule pipeline, it will save some time for db pipeline. Signed-off-by: danfengliu <danfengl@vmware.com>
26 lines
632 B
Bash
Executable File
26 lines
632 B
Bash
Executable File
#!/bin/sh
|
|
IP=$1
|
|
NOTARY_URL=$5
|
|
PASSHRASE='Harbor12345'
|
|
IMAGE=$IP/$2/$3:$4
|
|
|
|
echo $IP
|
|
|
|
export DOCKER_CONTENT_TRUST=1
|
|
export DOCKER_CONTENT_TRUST_SERVER=$NOTARY_URL
|
|
|
|
export NOTARY_ROOT_PASSPHRASE=$PASSHRASE
|
|
export NOTARY_TARGETS_PASSPHRASE=$PASSHRASE
|
|
export NOTARY_SNAPSHOT_PASSPHRASE=$PASSHRASE
|
|
export DOCKER_CONTENT_TRUST_ROOT_PASSPHRASE=$PASSHRASE
|
|
export DOCKER_CONTENT_TRUST_REPOSITORY_PASSPHRASE=$PASSHRASE
|
|
export DOCKER_CONTENT_TRUST_OFFLINE_PASSPHRASE=$PASSHRASE
|
|
export DOCKER_CONTENT_TRUST_TAGGING_PASSPHRASE=$PASSHRASE
|
|
|
|
docker login -u admin -p Harbor12345 $IP
|
|
|
|
docker tag $3:$4 $IMAGE
|
|
docker push $IMAGE
|
|
docker rmi -f $IMAGE
|
|
|