Skip to content
Open

Cicd #24

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions .github/workflows/react-cicd.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: React App - CI/CD Workflow
name: React App - CI

on:
# Trigger when code committed to the main branch
Expand All @@ -11,23 +11,22 @@ on:
# Trigger manually
workflow_dispatch:

env:
artifact-ui: ui
artifact-api: api

jobs:

# Build React app
build-ui:
name: Build React app
uses: msfred/templates/.github/workflows/build-react.yml@main
with:
artifact: ${{ env.artifact-ui }}
artifact: ui
path: ui

# Deploy React app
deploy-dev-ui:
name: Deploy to development
needs: build-ui
uses: msfred/templates/.github/workflows/deploy-webapp.yml@main
with:
artifact: ${{ env.artifact-ui }}
artifact: ui
environment: development
webAppName: app-hrsampleproduct-ui