-
Notifications
You must be signed in to change notification settings - Fork 1
64 lines (56 loc) · 1.81 KB
/
deploy_untuva.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
name: Deploy Untuva
on:
workflow_call:
workflow_dispatch:
concurrency: deploy-untuva
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_untuva:
name: 07-deploy-untuva.sh
if: github.ref == 'refs/heads/main'
permissions:
packages: read
id-token: write
contents: write
runs-on: 'ubuntu-24.04'
steps:
- uses: actions/checkout@v4.2.2
- name: Send build status "in progress"
uses: ./.github/actions/build_status
with:
task: deploy-untuva
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 untuva AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::782034763554:role/ludos-github-actions-role-untuva
aws-region: eu-west-1
- name: Deploy Untuva
run: ./deploy-scripts/07-deploy-untuva.sh
- run: |
git config user.name github-actions
git config user.email github-actions@github.com
git tag --force green-dev
git push --force origin green-dev
deployment_status_completed:
name: Send deployment status
needs: [deploy_untuva]
if: ${{ always() && github.ref == 'refs/heads/main' }}
continue-on-error: true
runs-on: 'ubuntu-24.04'
steps:
- uses: actions/checkout@v4.2.2
- uses: ./.github/actions/build_status
with:
task: deploy-untuva
status: ${{ needs.deploy_untuva.result == 'success' && 'success' || 'failure' }}
api_key: ${{ secrets.RADIATOR_AUTH_TOKEN }}