Skip to content

WIP:

WIP: #2697

Workflow file for this run

name: Main CI
on: push
#push:
# branches:
# - main
#pull_request:
# types: [ opened, synchronize, reopened ]
# only one job should run at a time when deploying
concurrency:
group: ${{github.workflow}}-${{ github.ref_name != 'main' && !contains(github.event.head_commit.message, '[pulumi up]') && github.ref_name || 'deploying' }}
cancel-in-progress: false
jobs:
## Echo the group name to see if the concurrency is working
#echo-group:
# runs-on: ubuntu-latest
# steps:
# - name: Echo group name
# run: echo ${{github.workflow}}-${{ github.ref_name != 'main' && !contains(github.event.head_commit.message, '[pulumi up]') && github.ref_name || 'deploying' }}
# Setup envs.
build:
uses: ./.github/workflows/build.yml
secrets: inherit
with:
upload-artifacts: true
target-environment: lower-envs
realm-name: ${{ vars.REALM_NAME }}
deploy:
# This job will only run if the push event is on the main branch, or the commit message contains '[pulumi up]'
# we are deploying on the new-dev environment.
# if: github.event_name == 'push' && ( github.ref == 'refs/heads/main' || contains(github.event.head_commit.message, '[pulumi up]'))
uses: ./.github/workflows/deploy-main.yml
needs: [ build ]
secrets: inherit
with:
target-environment: lower-envs
version: ${{ github.sha }}
realm-name: ${{ vars.REALM_NAME }}
frontend-version-info: ${{ needs.build.outputs.frontend-version-info }}
backend-version-info: ${{ needs.build.outputs.backend-version-info }}