Deploy Qa #17
This file contains 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 Qa | |
on: | |
workflow_dispatch: | |
inputs: | |
branch: | |
description: Branch to deploy | |
required: false | |
default: green-dev | |
concurrency: deploy-qa | |
env: | |
DOCKER_BUILDKIT: '1' # BuildKit is enabled by default starting in Docker v23, Ubuntu 22.04 has an older version | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
deploy_qa: | |
name: 08-deploy-qa.sh | |
permissions: | |
packages: read | |
id-token: write | |
contents: write | |
runs-on: 'ubuntu-24.04' | |
steps: | |
- uses: actions/checkout@v4.2.2 | |
with: | |
ref: ${{ inputs.branch }} | |
- name: Send build status "in progress" | |
uses: ./.github/actions/build_status | |
with: | |
task: deploy-qa | |
status: inProgress | |
api_key: ${{ secrets.RADIATOR_AUTH_TOKEN }} | |
- name: Fetch history for all branches and tags | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Configure qa AWS credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
role-to-assume: arn:aws:iam::260185049060:role/ludos-github-actions-role-qa | |
aws-region: eu-west-1 | |
- name: Deploy Qa | |
run: ./deploy-scripts/08-deploy-qa.sh | |
- run: | | |
git config user.name github-actions | |
git config user.email github-actions@github.com | |
git tag --force green-qa | |
git push --force origin green-qa | |
deployment_status_completed: | |
name: Send deployment status | |
needs: [deploy_qa] | |
if: always() | |
continue-on-error: true | |
runs-on: 'ubuntu-24.04' | |
steps: | |
- uses: actions/checkout@v4.2.2 | |
- uses: ./.github/actions/build_status | |
with: | |
task: deploy-qa | |
status: ${{ needs.deploy_qa.result == 'success' && 'success' || 'failure' }} | |
api_key: ${{ secrets.RADIATOR_AUTH_TOKEN }} |