Skip to content

Deploy main frontend PR to Test 🚀 #13

Deploy main frontend PR to Test 🚀

Deploy main frontend PR to Test 🚀 #13

Workflow file for this run

name: "Deploy main frontend PR to Test 🚀"
on:
workflow_dispatch:
permissions:
contents: write
id-token: write
jobs:
deploy:
name: Build and deploy to test
runs-on: ubuntu-latest
environment: dev
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
steps:
- name: Az CLI login
uses: azure/login@v1
with:
client-id: 1cdfeba2-68d5-43fc-8089-108014d4bf29
tenant-id: 3aa4a235-b6e2-48d5-9195-7fcf05b459b0
allow-no-subscriptions: true
- name: Get Azure principal token for Radix
run: |
token=$(az account get-access-token --resource 6dae42f8-4368-4678-94ff-3960e28e3630 --query=accessToken -otsv)
echo "::add-mask::$token"
echo "APP_SERVICE_ACCOUNT_TOKEN=$token" >> $GITHUB_ENV
- name: Build and deploy radix
uses: equinor/radix-github-actions@v1
with:
args: >
create pipeline-job build-deploy
--application procosys-frontend
--branch ${{ env.BRANCH_NAME }}
--environment test
--follow