Skip to content

GHA migration: secrets check (#365) #7

GHA migration: secrets check (#365)

GHA migration: secrets check (#365) #7

Workflow file for this run

name: Release
on:
workflow_dispatch:
push:
tags:
- v*
jobs:
release:
permissions:
contents: read
id-token: write # needed for the Vault authentication
runs-on: ubuntu-latest
steps:
- name: Load Secrets from Vault
uses: rancher-eio/read-vault-secrets@main
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: Checkout Repo
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ env.DOCKER_USERNAME }}
password: ${{ env.DOCKER_PASSWORD }}