Skip to content

Commit

Permalink
rearranged steps for frontend build
Browse files Browse the repository at this point in the history
Jira ticket: CAMS-417
  • Loading branch information
amorrow-flexion committed Dec 26, 2024
1 parent 7411922 commit 20d433b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/reusable-build-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ on:
required: true
type: string
jobs:
frontend:
build-frontend:
defaults:
run:
working-directory: user-interface
Expand Down
18 changes: 0 additions & 18 deletions .github/workflows/sub-deploy-code-slot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,25 +35,8 @@ on:
type: string

jobs:
build-frontend-deployment:
name: Build Frontend deployment
uses: ./.github/workflows/reusable-build-frontend.yml
secrets: inherit # pragma: allowlist secret
with:
nodeVersion: ${{ vars.NODE_VERSION }}
camsServerHostname: ${{ inputs.apiFunctionName }}.azurewebsites.us
camsServerPort: ${{ vars.CAMS_SERVER_PORT }}
camsServerProtocol: ${{ vars.CAMS_SERVER_PROTOCOL }}
camsBasePath: ${{ vars.CAMS_BASE_PATH }}
webappName: ${{ inputs.webappName }}
environment: ${{ inputs.ghaEnvironment }}
launchDarklyEnvironment: ${{ vars.CAMS_LAUNCH_DARKLY_ENV }}
azResourceGrpAppEncrypted: ${{ inputs.azResourceGrpAppEncrypted }}
isDeployment: true

deploy-code:
if: ${{ inputs.initialDeployment == 'true' }}
needs: [build-frontend-deployment]
name: Slot Code Deployment
uses: ./.github/workflows/sub-deploy-code.yml
with:
Expand All @@ -67,7 +50,6 @@ jobs:
secrets: inherit # pragma: allowlist secret

deploy-webapp-slot:
needs: [build-frontend-deployment]
runs-on: ubuntu-latest
environment: ${{ inputs.ghaEnvironment }}
steps:
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/sub-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,22 @@ jobs:
deployBicep: ${{ inputs.deployBicep }}
secrets: inherit # pragma: allowlist secret

build-frontend-deployment-artifact:
name: Build Frontend for deployment
uses: ./.github/workflows/reusable-build-frontend.yml
secrets: inherit # pragma: allowlist secret
with:
nodeVersion: ${{ vars.NODE_VERSION }}
camsServerHostname: ${{ inputs.apiFunctionName }}.azurewebsites.us
camsServerPort: ${{ vars.CAMS_SERVER_PORT }}
camsServerProtocol: ${{ vars.CAMS_SERVER_PROTOCOL }}
camsBasePath: ${{ vars.CAMS_BASE_PATH }}
webappName: ${{ inputs.webappName }}
environment: ${{ inputs.ghaEnvironment }}
launchDarklyEnvironment: ${{ vars.CAMS_LAUNCH_DARKLY_ENV }}
azResourceGrpAppEncrypted: ${{ inputs.azResourceGrpAppEncrypted }}
isDeployment: true

deploy-db:
name: ComosDb
uses: ./.github/workflows/reusable-database-deploy.yml
Expand Down

0 comments on commit 20d433b

Please sign in to comment.