|
|
@@ -487,7 +487,7 @@ steps:
|
|
|
from_secret: harbor_token
|
|
|
commands:
|
|
|
- cd /context
|
|
|
- - TAG=test-$(date +%Y%m%d%H%M%S)
|
|
|
+ - TAG=test-$(date +%Y%m%d%H%M%S)-${DRONE_COMMIT_SHA:0:10}
|
|
|
- echo "$TAG" > /home/TAG.txt
|
|
|
- docker login -u "$HARBOR_USER" -p "$HARBOR_PASS" harbor.kexiaoshuang.com
|
|
|
- docker build -t "harbor.kexiaoshuang.com/test/lhb-gateway:$TAG" .
|