From e7edddefe7d27190f755270130d9029e3e36e368 Mon Sep 17 00:00:00 2001 From: James Lu Date: Thu, 30 May 2024 10:32:58 +0800 Subject: [PATCH] fix(ci): allow to read docker hub secret Signed-off-by: James Lu --- .github/workflows/build.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 59a92d9ee..b55295c18 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -67,13 +67,12 @@ jobs: - name: Read Secrets uses: rancher-eio/read-vault-secrets@main - if: ${{ inputs.push == true }} with: secrets: | secret/data/github/repo/${{ github.repository }}/dockerhub/rancher/credentials username | DOCKER_USERNAME ; secret/data/github/repo/${{ github.repository }}/dockerhub/rancher/credentials password | DOCKER_PASSWORD - - name: Login to Docker Hub + - name: Get Branch Name run: | echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> "$GITHUB_ENV" - name: Login to Docker Hub