Skip to content

Commit

Permalink
Update actions-bot-AutoDeployTrigger-a1c33e0f-e39a-41db-9bab-b79b4c83…
Browse files Browse the repository at this point in the history
…f17a.yml
  • Loading branch information
lindluni authored Mar 10, 2024
1 parent e1bd155 commit a82bd99
Showing 1 changed file with 7 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,31 +1,26 @@
name: Trigger auto deployment for actions-bot

# When this action will be executed
on:
# Automatically trigger it when detected changes in repo
push:
branches:
[ main ]
- main
paths:
- '**'
- '.github/workflows/actions-bot-AutoDeployTrigger-a1c33e0f-e39a-41db-9bab-b79b4c83f17a.yml'

# Allow manual trigger
- '**'
- '.github/workflows/actions-bot-AutoDeployTrigger-a1c33e0f-e39a-41db-9bab-b79b4c83f17a.yml'
workflow_dispatch:

jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
id-token: write #This is required for requesting the OIDC JWT Token
contents: read #Required when GH token is used to authenticate with private repo

id-token: write
contents: read
steps:
- name: Checkout to the branch
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Azure Login
uses: azure/login@v1
uses: azure/login@v2
with:
client-id: ${{ secrets.ACTIONSBOT_AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.ACTIONSBOT_AZURE_TENANT_ID }}
Expand All @@ -41,7 +36,3 @@ jobs:
containerAppName: actions-bot
resourceGroup: actions-bot
imageToBuild: osstooling.azurecr.io/actions-bot:${{ github.sha }}
_buildArgumentsKey_: |
_buildArgumentsValues_

0 comments on commit a82bd99

Please sign in to comment.