Skip to content

Commit

Permalink
add gpg sign
Browse files Browse the repository at this point in the history
Signed-off-by: Ziming Zhang <[email protected]>
Change-Id: I32d13be2f5b5f383113582a4b1ad5f74bdc7546b
  • Loading branch information
bitsf committed Nov 1, 2019
1 parent 17aba8b commit f32b5ac
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ pipeline:
- docker_hub_username
- docker_hub_password
- npm_registry
- harbor_sign_key
- harbor_sign_key_id
commands:
- export DOMAIN=${CI_DOMAIN}
- export HOST_CONTAINER_ID=$(hostname)
Expand Down
11 changes: 8 additions & 3 deletions tests/integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ if [[ $DRONE_BRANCH == "master" || $DRONE_BRANCH == *"refs/tags"* || $DRONE_BRAN
if [[ $DRONE_BUILD_EVENT == "push" ]]; then
package_offline_installer
upload_latest_build=true
echo -en "$HARBOR_SIGN_KEY" | gpg --import
gpg -v -ab -u $HARBOR_SIGN_KEY_ID $harbor_build_bundle
fi
fi

Expand All @@ -166,9 +168,12 @@ fi
#
set -e
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
cp ${harbor_build_bundle} harbor-offline-installer-latest.tgz
cp ${harbor_build_bundle}.asc harbor-offline-installer-latest.tgz.asc
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
fi

Expand Down

0 comments on commit f32b5ac

Please sign in to comment.