Skip to content

Commit 3ad5f55

Browse files
committed
update
1 parent f9ff4b0 commit 3ad5f55

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

README.md

+14-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,20 @@ TODO
4848

4949
### GitLab-CI pipeline
5050

51-
1. Set a `SCM_ENGINE_TOKEN` pipeline secret with a [Project Access Token](https://docs.gitlab.com/ee/user/project/settings/project_access_tokens.html) with `api` scope.
51+
Using scm-engine within a GitLab CI pipeline is straight forward.
52+
53+
1. Add a `.scm-engine.yml` file in the root of your project.
54+
1. Create a [CI/CD Variable](https://docs.gitlab.com/ee/ci/variables/#for-a-group) named `SCM_ENGINE_TOKEN` with a value containing a [Project Access Token](https://docs.gitlab.com/ee/user/project/settings/project_access_tokens.html) with `api` scope.
55+
1. Setup a CI job using the `scm-engine` Docker image that will run when a pipeline is created from a Merge Request Event.
56+
57+
```yaml
58+
run::cli:
59+
image: ghcr.io/jippi/scm-engine:latest
60+
rules:
61+
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
62+
script:
63+
- scm-engine evaluate
64+
```
5265
5366
## Commands
5467

0 commit comments

Comments
 (0)