mirror of
https://github.com/davegallant/rfd-notify.git
synced 2025-08-06 00:33:39 +00:00
Add gitlab instructions
This commit is contained in:
25
README.md
25
README.md
@@ -44,7 +44,7 @@ expressions:
|
|||||||
- price error
|
- price error
|
||||||
```
|
```
|
||||||
|
|
||||||
## Github Action
|
## Github Actions
|
||||||
|
|
||||||
> Commiting the pickled data (previous_matches) back into the repository is a bit of a hack, but allows for a simpler setup.
|
> Commiting the pickled data (previous_matches) back into the repository is a bit of a hack, but allows for a simpler setup.
|
||||||
|
|
||||||
@@ -87,6 +87,29 @@ jobs:
|
|||||||
branch: ${{ github.ref }}
|
branch: ${{ github.ref }}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Gitlab Pipelines
|
||||||
|
|
||||||
|
> Create a [scheduled pipeline](https://docs.gitlab.com/ee/ci/pipelines/schedules.html) to run on a regular interval.
|
||||||
|
|
||||||
|
With Gitlab Pipelines, the following configuration works:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
#.gitlab-ci.yml
|
||||||
|
default:
|
||||||
|
image:
|
||||||
|
name: ghcr.io/davegallant/rfd-notify:1
|
||||||
|
entrypoint: [""]
|
||||||
|
|
||||||
|
run:
|
||||||
|
cache:
|
||||||
|
- key: previous_matches
|
||||||
|
paths:
|
||||||
|
- previous_matches
|
||||||
|
script:
|
||||||
|
- python /app/rfd_notify/cli.py -c config.yml
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
## Jenkins
|
## Jenkins
|
||||||
|
|
||||||
> The necessary Jenkins plugins (such as docker) and credentials must be configured.
|
> The necessary Jenkins plugins (such as docker) and credentials must be configured.
|
||||||
|
Reference in New Issue
Block a user