Gitlab CI/CD
# Using gitlab-runner
to test ci locally
- If on macOS, install gitlab-runner with the below command
|
|
- To start service, run the below command
|
|
- To restart the service, run the below command
|
|
- Official Gitlab Runner Docs: Install GitLab Runner
- Create a command
- The following
.gitlab-ci.yml
file defines a task namedbuild
:
- The following
|
|
- Run the command locally (limitations apply!)
|
|
# Consuming an npm package from private GitLab Package Registry
- Set registry and ensure authentication is configured via project access token. Add the following to your .npmrc at the root directory of your project that will be consuming from the private registry.
|
|
- To install the package, run
|
|