Skip to content

Create an auto-deploy file #1

Create an auto-deploy file

Create an auto-deploy file #1

name: Trigger auto deployment for demo-ethereal-nexus
# When this action will be executed
on:
# Automatically trigger it when detected changes in repo
push:
branches:
[ main ]
paths:
- '/ethereal-nexus-dashboard/**'
- '.github/workflows/demo-ethereal-nexus-AutoDeployTrigger-b5b2e196-b8c8-4d42-8528-b07617ea6295.yml'
# Allow manual trigger
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout to the branch
uses: actions/checkout@v2
- name: Azure Login
uses: azure/login@v1
with:
creds: ${{ secrets.DEMOETHEREALNEXUS_AZURE_CREDENTIALS }}
- name: Build and push container image to registry
uses: azure/container-apps-deploy-action@v2
with:
appSourcePath: ${{ github.workspace }}/ethereal-nexus-dashboard
registryUrl: registry.hub.docker.com
registryUsername: ${{ secrets.DEMOETHEREALNEXUS_REGISTRY_USERNAME }}
registryPassword: ${{ secrets.DEMOETHEREALNEXUS_REGISTRY_PASSWORD }}
containerAppName: demo-ethereal-nexus
resourceGroup: RG-Ethereal-nexus
imageToBuild: registry.hub.docker.com/demo-ethereal-nexus:${{ github.sha }}