From f759e055c3da4bbbc858be83a7d1ee16bf3bb653 Mon Sep 17 00:00:00 2001 From: Vicente Cheng Date: Wed, 19 Jun 2024 20:59:58 +0800 Subject: [PATCH] GHA: fix secret - the `${{ github.repository }}` already contains the full repo name, e.g. `harvester/csi-driver-lvm` Signed-off-by: Vicente Cheng --- .github/workflows/factory.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/factory.yml b/.github/workflows/factory.yml index 739d4105..f4b021a8 100644 --- a/.github/workflows/factory.yml +++ b/.github/workflows/factory.yml @@ -37,8 +37,8 @@ jobs: if: ${{ inputs.push == true }} with: secrets: | - secret/data/github/repo/harvester/${{ github.repository }}/dockerhub/harvester/credentials username | DOCKER_USERNAME ; - secret/data/github/repo/harvester/${{ github.repository }}/dockerhub/harvester/credentials password | DOCKER_PASSWORD + secret/data/github/repo/${{ github.repository }}/dockerhub/harvester/credentials username | DOCKER_USERNAME ; + secret/data/github/repo/${{ github.repository }}/dockerhub/harvester/credentials password | DOCKER_PASSWORD - name: Login to Docker Hub uses: docker/login-action@v3 if: ${{ inputs.push == true }}