|
|
@@ -84,7 +84,7 @@ steps:
|
|
|
commands:
|
|
|
- docker login -u "$HARBOR_USER" -p "$HARBOR_PASS" harbor.kexiaoshuang.com
|
|
|
- cd /context
|
|
|
- - TAG=$(date +%Y%m%d%H%M%S)
|
|
|
+ - TAG=$(date +%Y%m%d%H%M%S)-${DRONE_COMMIT_SHA:0:10}
|
|
|
- docker build -t "harbor.kexiaoshuang.com/laihaoba/lhb-gateway:$TAG" .
|
|
|
- docker push "harbor.kexiaoshuang.com/laihaoba/lhb-gateway:$TAG"
|
|
|
- docker rmi "harbor.kexiaoshuang.com/laihaoba/lhb-gateway:$TAG"
|
|
|
@@ -181,7 +181,7 @@ steps:
|
|
|
commands:
|
|
|
- docker login -u "$HARBOR_USER" -p "$HARBOR_PASS" harbor.kexiaoshuang.com
|
|
|
- cd /context
|
|
|
- - TAG=$(date +%Y%m%d%H%M%S)
|
|
|
+ - TAG=$(date +%Y%m%d%H%M%S)-${DRONE_COMMIT_SHA:0:10}
|
|
|
- docker build -t "harbor.kexiaoshuang.com/laihaoba/lhb-quartz:$TAG" .
|
|
|
- docker push "harbor.kexiaoshuang.com/laihaoba/lhb-quartz:$TAG"
|
|
|
- docker rmi "harbor.kexiaoshuang.com/laihaoba/lhb-quartz:$TAG"
|
|
|
@@ -280,7 +280,7 @@ steps:
|
|
|
commands:
|
|
|
- docker login -u "$HARBOR_USER" -p "$HARBOR_PASS" harbor.kexiaoshuang.com
|
|
|
- cd /context
|
|
|
- - TAG=$(date +%Y%m%d%H%M%S)
|
|
|
+ - TAG=$(date +%Y%m%d%H%M%S)-${DRONE_COMMIT_SHA:0:10}
|
|
|
- docker build -t "harbor.kexiaoshuang.com/laihaoba/lhb-system:$TAG" .
|
|
|
- docker push "harbor.kexiaoshuang.com/laihaoba/lhb-system:$TAG"
|
|
|
- docker rmi "harbor.kexiaoshuang.com/laihaoba/lhb-system:$TAG"
|
|
|
@@ -380,7 +380,7 @@ steps:
|
|
|
commands:
|
|
|
- docker login -u "$HARBOR_USER" -p "$HARBOR_PASS" harbor.kexiaoshuang.com
|
|
|
- cd /context
|
|
|
- - TAG=$(date +%Y%m%d%H%M%S)
|
|
|
+ - TAG=$(date +%Y%m%d%H%M%S)-${DRONE_COMMIT_SHA:0:10}
|
|
|
- docker build -t "harbor.kexiaoshuang.com/laihaoba/lhb-basic:$TAG" .
|
|
|
- docker push "harbor.kexiaoshuang.com/laihaoba/lhb-basic:$TAG"
|
|
|
- docker rmi "harbor.kexiaoshuang.com/laihaoba/lhb-basic:$TAG"
|
|
|
@@ -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" .
|
|
|
@@ -605,7 +605,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-quartz:$TAG" .
|
|
|
@@ -723,7 +723,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-system:$TAG" .
|
|
|
@@ -842,7 +842,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-basic:$TAG" .
|