Skip to content

Commit

Permalink
GitLab: "stageless" pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Oct 12, 2021
1 parent e49da79 commit 727b4c1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
10 changes: 4 additions & 6 deletions content/docs/start/gitlab.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,14 @@ Here, we'll walk through a tutorial to start using CML on GitLab.
into a new file `.gitlab-ci.yml` and save.

```yaml
stages:
- cml_run

cml:
stage: cml_run
train-model:
image: iterativeai/cml:0-dvc2-base1
script:
- pip3 install -r requirements.txt
- python train.py

create-cml-report:
needs: train-model
script:
- cat metrics.txt >> report.md
- cml publish confusion_matrix.png --md >> report.md
- cml send-comment report.md
Expand Down
11 changes: 4 additions & 7 deletions content/docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,14 @@ and CML set up on an Ubuntu LTS base for convenience.
The key file in any GitLab CI/CD project is `.gitlab-ci.yml`:

```yml
# .gitlab-ci.yml
stages:
- Train model
cml:
stage: Train model
train-model:
image: iterativeai/cml:0-dvc2-base1
script:
- pip3 install -r requirements.txt
- python train.py
# Create CML report
create-CML-report:
needs: train-model
script:
- cat metrics.txt >> report.md
- cml publish confusion_matrix.png --md >> report.md
- cml send-comment report.md
Expand Down

0 comments on commit 727b4c1

Please sign in to comment.