Skip to content

Commit

Permalink
Added CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mnlx committed Nov 16, 2023
1 parent a0bb557 commit 3aba6ce
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ui-deploy-azure-aks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ on:
type: environment
required: true

env:
ENVIRONMENT: ${{ github.ref_name == 'main' && inputs.environment == '' && 'production' || 'production' }} # TODO: change last production to staging
jobs:
run:
runs-on: ubuntu-latest
environment: ${{ github.ref == 'main' && inputs.environment == '' && 'production' || 'production' }} # TODO: change last production to staging
environment: ${{ github.ref_name == 'main' && inputs.environment == '' && 'production' || 'production' }} # TODO: change last production to staging
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand Down Expand Up @@ -45,10 +47,10 @@ jobs:
envkey_VITE_AUTH0_DOMAIN: ${{ secrets.VITE_AUTH0_DOMAIN }}
envkey_VITE_AUTH0_CLIENT_ID: ${{ secrets.VITE_AUTH0_CLIENT_ID }}
envkey_VITE_AUTH0_AUDIENCE: ${{ secrets.VITE_AUTH0_AUDIENCE }}
file_name: .env.${{ inputs.environment }}
file_name: .env.${{ env.ENVIRONMENT }}

- name: Build
run: npm run build:${{ inputs.environment }}
run: npm run build:${{ env.ENVIRONMENT }}

- name: Upload to blob storage
uses: azure/CLI@v1
Expand Down

0 comments on commit 3aba6ce

Please sign in to comment.