Skip to content
name: Trigger auto deployment for xoxno-notifier-mainnet
# When this action will be executed
on:
# Automatically trigger it when detected changes in repo
push:
branches:
[ add-azure-service-bus ]
paths:
- '**'
- '.github/workflows/xoxno-notifier-mainnet-AutoDeployTrigger-dff096b0-d02c-4abd-ae73-debb4bfbb4f8.yml'
# Allow manual trigger
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
steps:
- name: Checkout to the branch
uses: actions/checkout@v4
- name: Azure Login
uses: azure/login@v2
with:
client-id: ${{ secrets.XOXNONOTIFIERMAINNET_AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.XOXNONOTIFIERMAINNET_AZURE_TENANT_ID }}
subscription-id: ${{ secrets.XOXNONOTIFIERMAINNET_AZURE_SUBSCRIPTION_ID }}
- name: Build and push container image to registry
uses: azure/container-apps-deploy-action@v2
with:
appSourcePath: ${{ github.workspace }}
registryUrl: xoxno.azurecr.io
registryUsername: ${{ secrets.XOXNONOTIFIERMAINNET_REGISTRY_USERNAME }}
registryPassword: ${{ secrets.XOXNONOTIFIERMAINNET_REGISTRY_PASSWORD }}
containerAppName: xoxno-notifier-mainnet
resourceGroup: XOXNO
imageToBuild: xoxno.azurecr.io/xoxno-notifier-mainnet:${{ github.sha }}