Skip to content

Merge pull request #12 from SwiftFiddle/kishikawakatsumi-patch-2 #9

Merge pull request #12 from SwiftFiddle/kishikawakatsumi-patch-2

Merge pull request #12 from SwiftFiddle/kishikawakatsumi-patch-2 #9

name: Trigger auto deployment for swiftfiddle-runner-functions-561
# When this action will be executed
on:
# Automatically trigger it when detected changes in repo
push:
branches: [main]
paths:
- "**"
- ".github/workflows/swiftfiddle-runner-functions-561-AutoDeployTrigger-24cb60ca-6695-450a-a83b-a85b9d0dbe35.yml"
# Allow manual trigger
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout to the branch
uses: actions/checkout@v4
- name: Azure Login
uses: azure/login@v2
with:
creds: ${{ secrets.SWIFTFIDDLERUNNERFUNCTIONS561_AZURE_CREDENTIALS }}
- name: Build and push container image to registry
uses: azure/container-apps-deploy-action@v2
with:
appSourcePath: ${{ github.workspace }}
registryUrl: swiftfiddle.azurecr.io
registryUsername: ${{ secrets.SWIFTFIDDLERUNNERFUNCTIONS561_REGISTRY_USERNAME }}
registryPassword: ${{ secrets.SWIFTFIDDLERUNNERFUNCTIONS561_REGISTRY_PASSWORD }}
containerAppName: swiftfiddle-runner-functions-561
resourceGroup: swiftfiddle
imageToBuild: swiftfiddle.azurecr.io/swiftfiddle-runner-functions-561:latest