Skip to content

Commit

Permalink
Set discord token in keyvault in CD
Browse files Browse the repository at this point in the history
  • Loading branch information
hmathieu31 committed Dec 28, 2023
1 parent 4970db1 commit a41c2a3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/containerapp-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,15 @@ jobs:
uses: azure/CLI@v1
with:
inlineScript: >
az keyvault secret set \
--vault-name ${{ vars.KEYVAULT_NAME }} \
--name discordbot-token \
--value ${{ secrets.DISCORD_BOT_TOKEN }}
az containerapp secret set \
--name ${{ vars.CONTAINER_APP_NAME }} \
--resource-group ${{ vars.CONTAINER_APP_RESOURCE_GROUP_NAME }} \
--secrets 'discordbot-token=${{ secrets.DISCORD_BOT_TOKEN }}'
--secrets discordbot-token=keyvaultref:${{ vars.KEYVAULT_URI }}secrets/discordbot-token,identityref:${{ vars.MANAGED_ID }}
- name: Deploy to container app
uses: azure/CLI@v1
Expand Down

0 comments on commit a41c2a3

Please sign in to comment.