Skip to content

Commit

Permalink
deploy front to dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Administrator committed Dec 13, 2024
1 parent d7352e2 commit df4e486
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 29 deletions.
32 changes: 17 additions & 15 deletions .github/workflows/build-deploy-frontend.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
name: Build and Deploy Frontend

on:
workflow_dispatch:
inputs:
deploy-env:
description: 'The environment to deploy to'
required: true
type: choice
options:
- dev
- demo
storage-account-name:
description: 'After the demo env gets created, copy its blob storage name here'
required: false
push:
branches: test-deploy-middleware
# workflow_dispatch:
# inputs:
# deploy-env:
# description: 'The environment to deploy to'
# required: true
# type: choice
# options:
# - dev
# - demo
# storage-account-name:
# description: 'After the demo env gets created, copy its blob storage name here'
# required: false

permissions:
id-token: write
Expand All @@ -26,7 +28,7 @@ jobs:
- uses: ./.github/actions/build-frontend
name: Build frontend
with:
api-endpoint: https://reportvision-middleware-${{ inputs.deploy-env }}.azurewebsites.net/
api-endpoint: https://reportvision-middleware-dev.azurewebsites.net/
frontend-tarball: ./frontend.tgz
frontend-path: ./frontend
frontend-build-path: ./frontend/dist/
Expand All @@ -35,7 +37,7 @@ jobs:
deploy-with-blob-name-optional:
name: Deploy
runs-on: ubuntu-latest
environment: ${{ inputs.deploy-env }}
environment: dev
needs: [build-frontend]
steps:
- name: Download Artifacts To Job
Expand All @@ -58,7 +60,7 @@ jobs:
shell: bash
run: |
if [ -z "${{ inputs.storage-account-name }}" ]; then
az storage blob upload-batch --account-name reportvisionfrontend${{ inputs.deploy-env }} -d '$web' -s frontend-deploy/ --overwrite
az storage blob upload-batch --account-name reportvisionfrontenddev -d '$web' -s frontend-deploy/ --overwrite
else
az storage blob upload-batch --account-name ${{ inputs.storage-account-name }} -d '$web' -s frontend-deploy/ --overwrite
fi
Expand Down
28 changes: 14 additions & 14 deletions .github/workflows/build-deploy-ocr.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
name: Create, publish, deploy a OCR API image

on:
push:
branches: test-deploy-middleware
# workflow_dispatch:
# inputs:
# deploy-env:
# description: 'The environment to deploy to'
# required: true
# type: choice
# options:
# - dev
# - demo
# ocr-docker-tag:
# description: 'This is optional if you would like to deploy an already published OCR-API image'
# required: false
# push:
# branches: test-deploy-middleware
workflow_dispatch:
inputs:
deploy-env:
description: 'The environment to deploy to'
required: true
type: choice
options:
- dev
- demo
ocr-docker-tag:
description: 'This is optional if you would like to deploy an already published OCR-API image'
required: false

permissions:
contents: read
Expand Down

0 comments on commit df4e486

Please sign in to comment.