Deploy Untuva #1
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 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/[email protected] | |
- 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 [email protected] | |
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/[email protected] | |
- uses: ./.github/actions/build_status | |
with: | |
task: deploy-untuva | |
status: ${{ needs.deploy_untuva.result == 'success' && 'success' || 'failure' }} | |
api_key: ${{ secrets.RADIATOR_AUTH_TOKEN }} |