mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-06 18:50:09 +01:00
commit
3810dcef0f
@ -53,6 +53,8 @@ pipeline:
|
|||||||
- docker_hub_username
|
- docker_hub_username
|
||||||
- docker_hub_password
|
- docker_hub_password
|
||||||
- npm_registry
|
- npm_registry
|
||||||
|
- harbor_sign_key
|
||||||
|
- harbor_sign_key_id
|
||||||
commands:
|
commands:
|
||||||
- export DOMAIN=${CI_DOMAIN}
|
- export DOMAIN=${CI_DOMAIN}
|
||||||
- export HOST_CONTAINER_ID=$(hostname)
|
- export HOST_CONTAINER_ID=$(hostname)
|
||||||
|
@ -151,6 +151,8 @@ if [[ $DRONE_BRANCH == "master" || $DRONE_BRANCH == *"refs/tags"* || $DRONE_BRAN
|
|||||||
if [[ $DRONE_BUILD_EVENT == "push" ]]; then
|
if [[ $DRONE_BUILD_EVENT == "push" ]]; then
|
||||||
package_offline_installer
|
package_offline_installer
|
||||||
upload_latest_build=true
|
upload_latest_build=true
|
||||||
|
echo -en "$HARBOR_SIGN_KEY" | gpg --import
|
||||||
|
gpg -v -ab -u $HARBOR_SIGN_KEY_ID $harbor_build_bundle
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -168,9 +170,12 @@ fi
|
|||||||
#
|
#
|
||||||
set -e
|
set -e
|
||||||
if [ $upload_build == true ]; then
|
if [ $upload_build == true ]; then
|
||||||
cp $harbor_build_bundle harbor-offline-installer-latest.tgz
|
cp ${harbor_build_bundle} harbor-offline-installer-latest.tgz
|
||||||
uploader $harbor_build_bundle $harbor_target_bucket
|
cp ${harbor_build_bundle}.asc harbor-offline-installer-latest.tgz.asc
|
||||||
uploader harbor-offline-installer-latest.tgz $harbor_target_bucket
|
uploader ${harbor_build_bundle} $harbor_target_bucket
|
||||||
|
uploader ${harbor_build_bundle}.asc $harbor_target_bucket
|
||||||
|
uploader harbor-offline-installer-latest.tgz $harbor_target_bucket
|
||||||
|
uploader harbor-offline-installer-latest.tgz.asc $harbor_target_bucket
|
||||||
upload_bundle_success=true
|
upload_bundle_success=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user