diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1df168f..d765e6e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,8 @@ name: CI -on: [push] +on: + push: + workflow_call: env: MISE_ENV: development diff --git a/.github/workflows/continuous-deployment.yml b/.github/workflows/continuous-deployment.yml new file mode 100644 index 0000000..293f369 --- /dev/null +++ b/.github/workflows/continuous-deployment.yml @@ -0,0 +1,24 @@ +name: Continuous deployment +run-name: Continuous deployment of ${{ github.ref_name }} to QA and Test + +on: + push: + branches: [next] + +jobs: + ci: + permissions: {} + uses: ./.github/workflows/ci.yml + secrets: inherit + deploy: + needs: ci + strategy: + fail-fast: false + matrix: + environment: [qa, test] + permissions: + id-token: write + uses: ./.github/workflows/deploy-application.yml + with: + environment: ${{ matrix.environment }} + git_sha_to_deploy: ${{ github.sha }}