fix gpg sign build package release-2.11.0 (#21178)

Signed-off-by: yminer <miner.yang@broadcom.com>
Co-authored-by: yminer <miner.yang@broadcom.com>
This commit is contained in:
miner 2024-11-13 15:24:45 +08:00 committed by GitHub
parent 5593caf37e
commit 3c7748e819
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -96,23 +96,13 @@ jobs:
echo "Package name is: $harbor_offline_build_bundle" echo "Package name is: $harbor_offline_build_bundle"
echo "Package name is: $harbor_online_build_bundle" echo "Package name is: $harbor_online_build_bundle"
# echo -en "${{ secrets.HARBOR_SIGN_KEY }}" | gpg --import
# gpg -v -ab -u ${{ secrets.HARBOR_SIGN_KEY_ID }} $harbor_offline_build_bundle
# gpg -v -ab -u ${{ secrets.HARBOR_SIGN_KEY_ID }} $harbor_online_build_bundle
source tests/ci/build_util.sh source tests/ci/build_util.sh
cp ${harbor_offline_build_bundle} harbor-offline-installer-latest.tgz cp ${harbor_offline_build_bundle} harbor-offline-installer-latest.tgz
# cp ${harbor_offline_build_bundle}.asc harbor-offline-installer-latest.tgz.asc
cp ${harbor_online_build_bundle} harbor-online-installer-latest.tgz cp ${harbor_online_build_bundle} harbor-online-installer-latest.tgz
# cp ${harbor_online_build_bundle}.asc harbor-online-installer-latest.tgz.asc
uploader ${harbor_offline_build_bundle} $harbor_target_bucket uploader ${harbor_offline_build_bundle} $harbor_target_bucket
# uploader ${harbor_offline_build_bundle}.asc $harbor_target_bucket
uploader ${harbor_online_build_bundle} $harbor_target_bucket uploader ${harbor_online_build_bundle} $harbor_target_bucket
# uploader ${harbor_online_build_bundle}.asc $harbor_target_bucket
uploader harbor-offline-installer-latest.tgz $harbor_target_bucket uploader harbor-offline-installer-latest.tgz $harbor_target_bucket
# uploader harbor-offline-installer-latest.tgz.asc $harbor_target_bucket
uploader harbor-online-installer-latest.tgz $harbor_target_bucket uploader harbor-online-installer-latest.tgz $harbor_target_bucket
# uploader harbor-online-installer-latest.tgz.asc $harbor_target_bucket
echo "BUILD_BUNDLE=$harbor_offline_build_bundle" >> $GITHUB_ENV echo "BUILD_BUNDLE=$harbor_offline_build_bundle" >> $GITHUB_ENV
publishImage $target_branch $Harbor_Assets_Version "${{ secrets.DOCKER_HUB_USERNAME }}" "${{ secrets.DOCKER_HUB_PASSWORD }}" publishImage $target_branch $Harbor_Assets_Version "${{ secrets.DOCKER_HUB_USERNAME }}" "${{ secrets.DOCKER_HUB_PASSWORD }}"
@ -125,4 +115,4 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }} SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
if: always() if: always()