diff --git a/.github/workflows/amadeus7-container-app-AutoDeployTrigger-bfe800ef-6221-4f0c-8941-7d7bfe3f8958.yml b/.github/workflows/amadeus7-container-app-AutoDeployTrigger-bfe800ef-6221-4f0c-8941-7d7bfe3f8958.yml new file mode 100644 index 0000000..7505c2a --- /dev/null +++ b/.github/workflows/amadeus7-container-app-AutoDeployTrigger-bfe800ef-6221-4f0c-8941-7d7bfe3f8958.yml @@ -0,0 +1,44 @@ +name: Trigger auto deployment for amadeus7-container-app + +# When this action will be executed +on: + # Automatically trigger it when detected changes in repo + push: + branches: + [ main ] + paths: + - '**' + - '.github/workflows/amadeus7-container-app-AutoDeployTrigger-bfe800ef-6221-4f0c-8941-7d7bfe3f8958.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.AMADEUS7CONTAINERAPP_AZURE_CREDENTIALS }} + + - name: Build and push container image to registry + uses: azure/container-apps-deploy-action@v2 + with: + appSourcePath: ${{ github.workspace }} + _dockerfilePathKey_: _dockerfilePath_ + registryUrl: amadeus7.azurecr.io + registryUsername: ${{ secrets.AMADEUS7CONTAINERAPP_REGISTRY_USERNAME }} + registryPassword: ${{ secrets.AMADEUS7CONTAINERAPP_REGISTRY_PASSWORD }} + containerAppName: amadeus7-container-app + resourceGroup: amadeus7rg-container-app + imageToBuild: amadeus7.azurecr.io/amadeus7-container-app:${{ github.sha }} + + + + + diff --git a/app/index.html b/app/index.html index 1220cc8..c1a0146 100644 --- a/app/index.html +++ b/app/index.html @@ -13,7 +13,7 @@
-

Welcome on your own Azure Containerapps Hello World!

+

Welcome on your own Azure Containerapps Hello World!---amadeus