mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-23 10:45:45 +01:00
c6814f2bcc
1, deprecate travis, and use the gitaction for instread. 2, upgrade golang version to v1.15.6 Signed-off-by: Wang Yan <wangyan@vmware.com>
15 lines
400 B
Bash
Executable File
15 lines
400 B
Bash
Executable File
#!/bin/bash
|
|
|
|
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"
|