mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-01 08:09:59 +01:00
072f364d0b
1. Add manifest and CNAB replication tests; 2. Duplicate ORAS and sigularity tests from API test to nightly common tests; 3. Optimize get dns code in CI; 4. Optimize E2E dockerfile; 5. Sample image size should be cover requirement for large size like 512M. Signed-off-by: danfengliu <danfengl@vmware.com>
27 lines
669 B
Bash
Executable File
27 lines
669 B
Bash
Executable File
#!/bin/bash
|
|
|
|
#docker pull $3:$4
|
|
set -x
|
|
|
|
IP=$1
|
|
notaryServerEndpoint=$5
|
|
tag_src=$6
|
|
USER=$7
|
|
PASSHRASE=$8
|
|
echo $IP
|
|
|
|
export DOCKER_CONTENT_TRUST=1
|
|
export DOCKER_CONTENT_TRUST_SERVER=https://$notaryServerEndpoint
|
|
|
|
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 $USER -p $PASSHRASE $IP
|
|
docker tag $tag_src $IP/$2/$3:$4
|
|
docker push $IP/$2/$3:$4
|