Quick Start
This is only recommended if you have worked with Gitlab pipelines and are familiar with gitlab.com pipeline configurations. If not, please continue onto the next section to dive into the detail.
Copy Pipeline Template
Copy the template
./pipelines/_template.ymlintopipelines/and rename it to a suitable name, e.g.app-platform-my-app.ymlFind and replace all instances of
my-app-with your app's name. This will rename all instances of the job names, and instances of where a job is needed in order to run.Find and replace all instance of
[ apps/YOUR-DIR-HERE/**/*, apps/YOUR-FILE-HERE.ts ]with an array of files and/or directories. This will add an array of files that if a file is changed within the array, the job will be triggered.Set your apps base href by replacing all instances of
/SOME_SUB_DIR/with the sub-directory you want your app to be available on. e.g.https://login.secure.investec.com/my-app-sub-directory. If you don't know what it is, check what you are using when building your app, e.g.--base-href /my-app/
Take care
Be careful not to conflict with an existing app base href, always ensure your base href is unique
Find and replace all instances of
YOUR-DIR-HEREwith your apps directory name, e.g. resulting inTARGET_PROJECT: app-platform-mmy-app.Configure the
TARGET_URIto point to your sub-directory from step 4. You can do this by find and replace all instances ofinvestec.com/my-app*.Lastly, find and replace all instances of
TARGET_CF_URI: my-appand specify you same sub-directory from step 4, however make sure not to include and forward slashes.