mirror of
https://github.com/goharbor/harbor.git
synced 2024-09-19 09:11:30 +02:00
1801a3cee3
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
517 B
Bash
Executable File
27 lines
517 B
Bash
Executable File
#!/bin/bash
|
|
set -x
|
|
set -e
|
|
|
|
IP=$1
|
|
USER=$2
|
|
PWD=$3
|
|
INDEX=$4
|
|
IMAGE1=$5
|
|
IMAGE2=$6
|
|
echo $IP
|
|
|
|
docker login $IP -u $USER -p $PWD
|
|
|
|
cat /$HOME/.docker/config.json
|
|
|
|
if [ $(cat /$HOME/.docker/config.json |grep experimental |wc -l) -eq 0 ];then
|
|
sed -i '$d' /$HOME/.docker/config.json
|
|
sed -i '$d' /$HOME/.docker/config.json
|
|
echo -e "},\n \"experimental\": \"enabled\"\n}" >> /$HOME/.docker/config.json
|
|
fi
|
|
|
|
cat /$HOME/.docker/config.json
|
|
|
|
docker manifest create $INDEX $IMAGE1 $IMAGE2
|
|
docker manifest push $INDEX
|