Add gitlab instructions

This commit is contained in:
Dave Gallant
2023-03-05 20:11:02 -05:00
parent fe19cd1a3a
commit 47cf3476b8

View File

@@ -44,7 +44,7 @@ expressions:
- 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.
@@ -87,6 +87,29 @@ jobs:
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
> The necessary Jenkins plugins (such as docker) and credentials must be configured.