Skip to content

Commit

Permalink
fix(ci): allow to read docker hub secret
Browse files Browse the repository at this point in the history
Signed-off-by: James Lu <[email protected]>
  • Loading branch information
mantissahz authored and derekbit committed May 30, 2024
1 parent 8d20807 commit 4a77e7c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4a77e7c

Please sign in to comment.