Merge branch 'main' into experience/17137/re-update-roadmap #328
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: Release Trial Frontend | |
on: | |
push: | |
branches: | |
- trialfrontend01 | |
- trialfrontend02 | |
- trialfrontend03 | |
defaults: | |
run: | |
working-directory: prime-router | |
env: | |
AZURE_CREDENTIALS: '{"clientId":"${{ secrets.AZURE_CLIENT_ID }}","clientSecret":"${{ secrets.AZURE_CLIENT_SECRET }}","subscriptionId":"${{ secrets.AZURE_SUBSCRIPTION_ID }}","tenantId":"${{ secrets.AZURE_TENANT_ID }}"}' | |
jobs: | |
pre_job: | |
name: "Set Build Environment" | |
runs-on: ubuntu-latest | |
outputs: | |
env_name: ${{ steps.build_vars.outputs.env_name }} | |
version: ${{ github.ref_name }} | |
steps: | |
- name: Check out changes | |
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 | |
- name: Build vars | |
id: build_vars | |
uses: ./.github/actions/build-vars | |
build_frontend_react_release: | |
name: "Release: Build Frontend (React)" | |
needs: | |
- pre_job | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: frontend-react | |
steps: | |
- name: Check out changes | |
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 | |
- name: Build frontend | |
uses: ./.github/actions/build-frontend | |
with: | |
env-name: ${{ needs.pre_job.outputs.env_name }} | |
appinsights-staging-key: ${{ secrets.APPINSIGHTS_STAGING_KEY }} | |
appinsights-prod-key: none | |
version: ${{ needs.pre_job.outputs.version }} | |
test-admin-user: ${{ secrets.TEST_ADMIN_USERNAME }} | |
test-admin-password: ${{ secrets.TEST_ADMIN_PASSWORD }} | |
test-sender-user: ${{ secrets.TEST_SENDER_USERNAME }} | |
test-sender-password: ${{ secrets.TEST_SENDER_PASSWORD }} | |
test-receiver-user: ${{ secrets.TEST_RECEIVER_USERNAME }} | |
test-receiver-password: ${{ secrets.TEST_RECEIVER_PASSWORD }} | |
deploy_trial_frontend: | |
name: "Deploy Trial Frontend: ${{ needs.pre_job.outputs.env_name }}" | |
needs: | |
- pre_job | |
- build_frontend_react_release | |
if: | | |
always() && | |
failure() != 'true' | |
environment: staging | |
concurrency: ${{ needs.pre_job.outputs.env_name }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out changes | |
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 | |
- name: Connect to VPN and login to Azure | |
uses: ./.github/actions/vpn-azure | |
with: | |
env-name: staging | |
tls-key: ${{ secrets.TLS_KEY }} | |
ca-cert: ${{ secrets.CA_CRT}} | |
user-crt: ${{ secrets.USER_CRT }} | |
user-key: ${{ secrets.USER_KEY }} | |
sp-creds: ${{ env.AZURE_CREDENTIALS }} | |
- name: Deploy frontend | |
uses: ./.github/actions/deploy-frontend | |
with: | |
env-name: ${{ needs.pre_job.outputs.env_name }} | |
version: ${{ needs.pre_job.outputs.version }} |