-
Notifications
You must be signed in to change notification settings - Fork 1
68 lines (61 loc) · 1.82 KB
/
deploy_qa.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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 }}