Skip to content

Commit

Permalink
Merge pull request #1 from orfeas-k/add-workflow-azure
Browse files Browse the repository at this point in the history
add workflow 11:20
  • Loading branch information
orfeas-k authored Jan 24, 2024
2 parents 0a1cf82 + 5d0126e commit 9cc7876
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/worfklow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# File: .github/workflows/workflow.yml

name: Run Azure Login with OIDC
on:
workflow_dispatch:

schedule:
- cron: "20 9 * * 2"

permissions:
id-token: write
contents: read
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Azure login
uses: azure/login@v1
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

- name: Azure CLI script
uses: azure/CLI@v1
with:
azcliversion: latest
inlineScript: |
az account show

0 comments on commit 9cc7876

Please sign in to comment.