Feature: Add rollup-staging environment configurations GASP-1784 (#401) #348
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: main branch workflow | |
on: | |
push: | |
branches: [main, feat/add-main-branch-ci-pipeline-MGX-834] | |
permissions: | |
contents: write | |
id-token: write | |
deployments: write | |
checks: write | |
# The following concurrency group queus in-progress jobs | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref }} | |
cancel-in-progress: false | |
jobs: | |
init: | |
name: Set global version | |
runs-on: ubuntu-latest | |
outputs: | |
GLOBAL_VERSION: ${{ steps.set_vars.outputs.GLOBAL_VERSION }} | |
steps: | |
- name: Set global version | |
id: set_vars | |
run: echo "GLOBAL_VERSION=${{ github.sha }}" >> $GITHUB_OUTPUT | |
build-and-test: | |
needs: [init] | |
name: Build | |
uses: ./.github/workflows/reusable-build-and-test.yml | |
secrets: inherit | |
with: | |
version: ${{ needs.init.outputs.GLOBAL_VERSION }} | |
deploy-dev: | |
name: Deploy `dev` environment | |
needs: [init, build-and-test] | |
uses: ./.github/workflows/reusable-deploy.yml | |
secrets: inherit | |
with: | |
env: dev | |
version: ${{ needs.init.outputs.GLOBAL_VERSION }} |