Skip to content

Feature/GitHub monitor cicd (#93) #1

Feature/GitHub monitor cicd (#93)

Feature/GitHub monitor cicd (#93) #1

name: Deploy AHK.GradeManagement.QueueFunction
on:
# Trigger the workflow on a push to the main branch.
push:
branches: dev
# Allows you to run this workflow manually (for any branch) from the Actions tab.
workflow_dispatch:
env:
artifactName: buildArtifact
appNameEnvVar: "AHK_GradeManagement_QueueFunction_App_Name"
publishProfileSecret: "AHK_GradeManagement_QueueFunction_PUBLISH_PROFILE"
packageName: "Ahk.GradeManagement.QueueFunction"
jobs:
# 👇 Call the build workflow to create the artifacts to deploy, and provide the artifact name.
build:
uses: ./.github/workflows/AHK.GradeManagement.QueueFunction-build.yml
with:
artifactName: ${{ github.env.artifactName }}
secrets: inherit # Pass secrets to the build workflow, if necessary.
deploy-to-test:
needs: build
uses: ./.github/workflows/AzureFunctions-deploy.template.yml
with:
environmentName: test
artifactName: ${{ github.env.artifactName }}
packageName: ${{ github.env.packageName }}
appNameEnvVar: ${{ github.env.appNameEnvVar }}

Check failure on line 32 in .github/workflows/AHK.GradeManagement.QueueFunction-deploy.yml

View workflow run for this annotation

GitHub Actions / Deploy AHK.GradeManagement.QueueFunction

Invalid workflow file

The workflow is not valid. .github/workflows/AHK.GradeManagement.QueueFunction-deploy.yml (Line: 32, Col: 22): Invalid input, appNameEnvVar is not defined in the referenced workflow. .github/workflows/AHK.GradeManagement.QueueFunction-deploy.yml (Line: 33, Col: 29): Invalid input, publishProfileSecret is not defined in the referenced workflow.
publishProfileSecret: ${{ github.env.publishProfileSecret }}
secrets: inherit # Pass repository secrets to the deployment workflow.
deploy-to-production:
needs: deploy-to-test
uses: ./.github/workflows/AzureFunctions-deploy.template.yml
with:
environmentName: production
artifactName: ${{ github.env.artifactName }}
packageName: ${{ github.env.packageName }}
appNameEnvVar: ${{ github.env.appNameEnvVar }}
publishProfileSecret: ${{ github.env.publishProfileSecret }}
secrets: inherit # Pass repository secrets to the deployment workflow.