Skip to content

Commit

Permalink
use eio secrets for docker hub (#510)
Browse files Browse the repository at this point in the history
* use eio secrets

* fix secrets identation
  • Loading branch information
tashima42 authored Dec 5, 2024
1 parent 524b884 commit e8f7bee
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload -R ${{ github.repository }} ${{ github.ref_name }} ${{ github.workspace }}/dist/* --clobber
- name: Load Secrets from Vault
uses: rancher-eio/read-vault-secrets@main
with:
secrets: |
secret/data/github/repo/${{ github.repository }}/dockerhub/rancher/credentials username | DOCKERHUB_USERNAME;
secret/data/github/repo/${{ github.repository }}/dockerhub/rancher/credentials password | DOCKERHUB_TOKEN;
- name: Publish manifest
uses: ./actions/publish-image
with:
Expand All @@ -34,5 +40,5 @@ jobs:
# Docker as its Prime registry.
prime-registry: docker.io
prime-repo: rancher
prime-username: ${{ secrets.DOCKERHUB_USERNAME }}
prime-password: ${{ secrets.DOCKERHUB_TOKEN }}
prime-username: ${{ env.DOCKERHUB_USERNAME }}
prime-password: ${{ env.DOCKERHUB_TOKEN }}

0 comments on commit e8f7bee

Please sign in to comment.