Skip to content

Commit

Permalink
ci: add missing operations of secrets
Browse files Browse the repository at this point in the history
Signed-off-by: Vicente Cheng <[email protected]>
  • Loading branch information
Vicente-Cheng committed May 17, 2024
1 parent c5dc9be commit c2127a2
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/factory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ env:
NVDriverToolkitImageName: "harvester-nvidia-driver-toolkit"

jobs:
dapper-build-for-os:
build-os-related-images:
runs-on: ubuntu-latest
permissions:
contents: read
Expand All @@ -29,6 +29,21 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Read some 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
uses: docker/login-action@v3
if: ${{ inputs.push == true }}
with:
username: ${{ env.DOCKER_USERNAME }}
password: ${{ env.DOCKER_PASSWORD }}

- name: generate os-release
run: bash scripts/ci

Expand Down

0 comments on commit c2127a2

Please sign in to comment.