Deploy MAV-997_permission_restriction to sandbox-alpha #2428
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 ${{ inputs.git_tag || github.ref_name }} 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 | ||
- test | ||
- preview | ||
- training | ||
- production | ||
- sandbox-alpha | ||
- sandbox-beta | ||
server_types: | ||
description: Server types to deploy | ||
required: true | ||
type: choice | ||
options: | ||
- all | ||
- web | ||
- good-job | ||
default: all | ||
git_ref_to_deploy: | ||
description: The Git ref to deploy, or example, a tag, branch name or commit SHA (optional). Will use workflow ref if not provided. | ||
type: string | ||
jobs: | ||
determine-git-sha: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
git-sha: ${{ steps.get-git-sha.outputs.git-sha }} | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.git_ref_to_deploy || github.sha }} | ||
- name: Get git sha | ||
id: get-git-sha | ||
run: echo "git-sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT | ||
build-and-push-image: | ||
needs: determine-git-sha | ||
uses: ./.github/workflows/build-and-push-image.yml | ||
with: | ||
git-sha: ${{ needs.determine-git-sha.outputs.git-sha }} | ||
deploy-infrastructure: | ||
needs: [build-and-push-image, determine-git-sha] | ||
uses: ./.github/workflows/deploy-infrastructure.yml | ||
Check failure on line 63 in .github/workflows/deploy.yml
|
||
with: | ||
environment: ${{ inputs.environment }} | ||
image_tag: ${{ needs.determine-git-sha.outputs.git-sha }} | ||
deploy-application: | ||
needs: deploy-infrastructure | ||
uses: ./.github/workflows/deploy-application.yml | ||
with: | ||
environment: ${{ inputs.environment }} | ||
server_types: ${{ inputs.server_types }} | ||
git_sha_to_deploy: ${{ needs.determine-git-sha.outputs.git-sha }} |