mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-22 10:15:35 +01:00
Fix error on packaging offline installer with Drone (#5931)
Signed-off-by: wang yan <wangyan@vmware.com>
This commit is contained in:
parent
f49ae02a1a
commit
650449d5e0
@ -156,7 +156,7 @@ fi
|
||||
# harbor-offline-installer-latest.tgz
|
||||
#
|
||||
set -e
|
||||
if [ $upload_build == true ] && [ $rc -eq 0 ]; then
|
||||
if [ $upload_build == true ]; then
|
||||
cp $harbor_build_bundle harbor-offline-installer-latest.tgz
|
||||
uploader $harbor_build_bundle $harbor_target_bucket
|
||||
uploader harbor-offline-installer-latest.tgz $harbor_target_bucket
|
||||
@ -168,13 +168,13 @@ fi
|
||||
#
|
||||
# latest.build file holds the latest offline installer url, it must be sure that the installer has been uploaded successfull.
|
||||
#
|
||||
if [ $upload_latest_build == true ] && [ $upload_bundle_success == true ] && [ $rc -eq 0 ]; then
|
||||
if [ $upload_latest_build == true ] && [ $upload_bundle_success == true ]; then
|
||||
echo 'https://storage.googleapis.com/'$harbor_target_bucket/$harbor_build_bundle > $latest_build_file
|
||||
uploader $latest_build_file $harbor_target_bucket
|
||||
fi
|
||||
|
||||
## --------------------------------------------- Upload securego results ------------------------------------------
|
||||
if [ $DRONE_BUILD_EVENT == "push" ] && [ $rc -eq 0 ]; then
|
||||
if [ $DRONE_BUILD_EVENT == "push" ]; then
|
||||
go get github.com/securego/gosec/cmd/gosec
|
||||
go get github.com/dghubble/sling
|
||||
make gosec -e GOSECRESULTS=harbor-gosec-results-latest.json
|
||||
|
Loading…
Reference in New Issue
Block a user