Deploy to qa #2393
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy | ||
| run-name: Deploy to ${{ inputs.environment }} | ||
| concurrency: | ||
| group: deploy-${{ inputs.environment }} | ||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| environment: | ||
| required: true | ||
| type: string | ||
| server_types: | ||
| required: true | ||
| type: string | ||
| workflow_dispatch: | ||
| inputs: | ||
| environment: | ||
| description: Deployment environment | ||
| required: true | ||
| type: choice | ||
| options: | ||
| - qa | ||
| - poc | ||
| - test | ||
| - preview | ||
| - training | ||
| - production | ||
| - copilotmigration | ||
| server_types: | ||
| description: Server types to deploy | ||
| required: true | ||
| type: choice | ||
| options: | ||
| - all | ||
| - web | ||
| - good-job | ||
| default: all | ||
| git_tag: | ||
| description: Git tag to deploy | ||
| required: false | ||
| type: string | ||
| jobs: | ||
| determine-git-sha: | ||
| runs-on: ubuntu-latest | ||
| outputs: | ||
| git-sha: ${{ steps.get-git-sha.outputs.git-sha }} | ||
| steps: | ||
| - name: Get git sha | ||
| id: get-git-sha | ||
| run: | | ||
| if [ -z "${{ inputs.git_tag }}" ]; then | ||
| echo "No git tag provided. Using the latest commit sha" | ||
| echo "git-sha=${{ github.sha }}" >> $GITHUB_OUTPUT | ||
| else | ||
| echo "Git tag provided. Using the sha of the tagged commit" | ||
| echo "git-sha=$(git rev-parse ${{ inputs.git_tag }})" >> $GITHUB_OUTPUT | ||
| fi | ||
| build-and-push-image: | ||
| uses: ./.github/workflows/build-and-push-image.yml | ||
| with: | ||
| git-sha: ${{ determine-git-sha.outputs.git-sha || github.sha }} | ||
|
Check failure on line 63 in .github/workflows/deploy.yml
|
||
| deploy-infrastructure: | ||
| needs: build-and-push-image | ||
| uses: ./.github/workflows/deploy-infrastructure.yml | ||
| with: | ||
| environment: ${{ inputs.environment }} | ||
| git-sha: ${{ determine-git-sha.outputs.git-sha || github.sha }} | ||
| deploy-application: | ||
| needs: deploy-infrastructure | ||
| uses: ./.github/workflows/deploy-application.yml | ||
| with: | ||
| environment: ${{ inputs.environment }} | ||
| image_tag: ${{ determine-git-sha.outputs.git-sha || github.sha }} | ||
| server_types: ${{ inputs.server_types }} | ||