mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-23 10:45:45 +01:00
e32649adb4
In order to replace travis. Implement 5 CI jobs - UTTEST - APITEST_DB - APITEST_LDAP - OFFLINE - UI_UT Signed-off-by: Ziming Zhang <zziming@vmware.com>
17 lines
414 B
Bash
Executable File
17 lines
414 B
Bash
Executable File
#!/bin/bash
|
|
set -x
|
|
set -e
|
|
|
|
IP=$(hostname -I | awk '{print $1}')
|
|
docker pull hello-world
|
|
docker pull busybox
|
|
docker login -u admin -p Harbor12345 $IP:5000
|
|
|
|
docker tag hello-world $IP:5000/library/hello-world:latest
|
|
docker push $IP:5000/library/hello-world:latest
|
|
echo "$? pushed hello world"
|
|
|
|
docker tag busybox $IP:5000/library/busybox:latest
|
|
docker push $IP:5000/library/busybox:latest
|
|
echo "$? pushed busybox"
|