From 730a1c8a559bff2f2d2c6d7a6d0edcf508f1c0aa Mon Sep 17 00:00:00 2001 From: Chevdor Date: Mon, 14 Aug 2023 13:11:11 +0200 Subject: [PATCH] Fix the user used to login to Docker hub (#7610) --- .github/workflows/release-40_publish-rc-image.yml | 2 +- scripts/ci/common/lib.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-40_publish-rc-image.yml b/.github/workflows/release-40_publish-rc-image.yml index c46bf534b060..3d91c5b8c682 100644 --- a/.github/workflows/release-40_publish-rc-image.yml +++ b/.github/workflows/release-40_publish-rc-image.yml @@ -112,7 +112,7 @@ jobs: - name: Login to Dockerhub uses: docker/login-action@v2 with: - username: ${{ inputs.owner }} + username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Push Container image for ${{ matrix.binary }} diff --git a/scripts/ci/common/lib.sh b/scripts/ci/common/lib.sh index a04dc2ef1da0..e490ec22d5bf 100755 --- a/scripts/ci/common/lib.sh +++ b/scripts/ci/common/lib.sh @@ -206,7 +206,7 @@ fetch_release_artifacts() { -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer ${GITHUB_TOKEN}" \ -H "X-GitHub-Api-Version: 2022-11-28" \ - https://api.github.com/repos/${REPO}/releases/$RELEASE_ID > release.json + https://api.github.com/repos/${REPO}/releases/${RELEASE_ID} > release.json # Get Asset ids ids=($(jq -r '.assets[].id' < release.json ))