Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #9 from justinyoo/justin-readme-typo
Browse files Browse the repository at this point in the history
Fix typos on KeyVault actions and versioning
  • Loading branch information
N-Usha committed Jan 22, 2020
2 parents 5b22cf9 + 8a3c098 commit ff71549
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ jobs:
steps:
# checkout the repo
- uses: actions/checkout@master
- uses: azure/login@v1
- uses: Azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- uses: actions/get-keyvault-secrets
- uses: Azure/get-keyvault-secrets@v1.0
with:
keyvault: "my
Vault"
Expand Down Expand Up @@ -75,7 +75,7 @@ For more details, refer to [KeyVault Set-Policy](https://docs.microsoft.com/en-u
### Consuming secrets fetched using the keyvault action in your workflow
Sample workflow which leverages the Key Vault action to fetch multiple secrets from the Key Vault and use them as credentials for the docker login action.

```
```yaml
on: [push]

jobs:
Expand All @@ -84,15 +84,15 @@ jobs:
steps:
# checkout the repo
- uses: actions/checkout@master
- uses: azure/actions/login@v1
- uses: Azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }} # Define secret variable in repository settings as per action documentation
- uses: actions/get-keyvault-secrets
- uses: Azure/get-keyvault-secrets@v1.0
with:
keyvault: "myKeyVault"
secrets: 'mySecret1, mySecret2'
id: myGetSecretAction
- uses: azure/docker-login@v1
- uses: Azure/docker-login@v1
with:
login-server: mycontainer.azurecr.io
username: ${{ steps.myGetSecretAction.outputs.mySecret1 }}
Expand Down

0 comments on commit ff71549

Please sign in to comment.