Skip to content
Open
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
23 changes: 23 additions & 0 deletions documentation/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Spotlights Deployment

- The spotlights deployment is made via a github actions CI/CD pipeline.This runs the test, build and deployment stages.

## Github Actions Workflow

### Test Stage

- runs for every push and pull request on all branches

### Build Stage

- requires the test stage for it to run
- only runs for the master and develop branches
- runs the app build using `npm run build` and bundles specified files into one build folder
- stores the folder as a build artifact and the deploy_script in another deploy_script folder in github actions.
- clears the previous build folder on the server and downloads the build folder and deploy_script folder

### Deploy stage

- requires the build stage
- sets the `HOST` and `CMS_URL` environment variables based on the branch. These variables have to be added as github secrets
- unzips the deploy_script folder and executes the script in this folder