Skip to content

Commit

Permalink
chore: deploy to Azure with OIDC
Browse files Browse the repository at this point in the history
  • Loading branch information
badboy99tw committed Nov 17, 2022
1 parent 3165e92 commit 0e49e7b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/deploy.yaml
Expand Up @@ -9,6 +9,9 @@ on:
branches:
- main

permissions:
id-token: write

jobs:
build-and-deploy:
runs-on: ubuntu-18.04
Expand All @@ -18,7 +21,9 @@ jobs:
- name: Login
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

- name: Deploy to prod for Tags
if: contains(github.ref, 'refs/tags/')
Expand Down

0 comments on commit 0e49e7b

Please sign in to comment.