Skip to content

Merge pull request #17 from SwiftFiddle/renovate/actions-checkout-5.x #2

Merge pull request #17 from SwiftFiddle/renovate/actions-checkout-5.x

Merge pull request #17 from SwiftFiddle/renovate/actions-checkout-5.x #2

name: Trigger auto deployment for swiftfiddle-runner-functions-61
# When this action will be executed
on:
# Automatically trigger it when detected changes in repo
push:
branches:
[ main ]
paths:
- '**'
- '.github/workflows/swiftfiddle-runner-functions-61-AutoDeployTrigger-634f05a9-2cb9-413a-8f81-5805d650f15a.yml'
# Allow manual trigger
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout to the branch
uses: actions/checkout@v5
- name: Azure Login
uses: azure/login@v2
with:
creds: ${{ secrets.SWIFTFIDDLERUNNERFUNCTIONS61_AZURE_CREDENTIALS }}
- name: Build and push container image to registry
uses: azure/container-apps-deploy-action@v2
with:
appSourcePath: ${{ github.workspace }}
_dockerfilePathKey_: _dockerfilePath_
_targetLabelKey_: _targetLabel_
registryUrl: docker.io
registryUsername: ${{ secrets.SWIFTFIDDLERUNNERFUNCTIONS61_REGISTRY_USERNAME }}
registryPassword: ${{ secrets.SWIFTFIDDLERUNNERFUNCTIONS61_REGISTRY_PASSWORD }}
containerAppName: swiftfiddle-runner-functions-61
resourceGroup: swiftfiddle
imageToBuild: kishikawakatsumi/swiftfiddle-runner-functions-61:${{ github.sha }}