Skip to content

Merge pull request #33 from SwiftFiddle/renovate/actions-checkout-4.x #4

Merge pull request #33 from SwiftFiddle/renovate/actions-checkout-4.x

Merge pull request #33 from SwiftFiddle/renovate/actions-checkout-4.x #4

name: Trigger auto deployment for swiftfiddle-runner-functions-563
# When this action will be executed
on:
# Automatically trigger it when detected changes in repo
push:
branches:
[ main ]
paths:
- '**'
- '.github/workflows/swiftfiddle-runner-functions-563-AutoDeployTrigger-b31f3ec7-ded4-4360-8731-d5b5bfc140f5.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@v1
with:
client-id: ${{ secrets.SWIFTFIDDLERUNNERFUNCTIONS563_AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.SWIFTFIDDLERUNNERFUNCTIONS563_AZURE_TENANT_ID }}
subscription-id: ${{ secrets.SWIFTFIDDLERUNNERFUNCTIONS563_AZURE_SUBSCRIPTION_ID }}
- name: Build and push container image to registry
uses: azure/container-apps-deploy-action@v2
with:
appSourcePath: ${{ github.workspace }}
_dockerfilePathKey_: _dockerfilePath_
registryUrl: docker.io
registryUsername: ${{ secrets.SWIFTFIDDLERUNNERFUNCTIONS563_REGISTRY_USERNAME }}
registryPassword: ${{ secrets.SWIFTFIDDLERUNNERFUNCTIONS563_REGISTRY_PASSWORD }}
containerAppName: swiftfiddle-runner-functions-563
resourceGroup: swiftfiddle
imageToBuild: swiftfiddle/swiftfiddle-runner-functions-563:latest
_buildArgumentsKey_: |
_buildArgumentsValues_