-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4045f08
commit 68e468b
Showing
6 changed files
with
84 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,40 @@ | ||
--- | ||
title: GitLab CI | ||
description: Examples and instructions for setting up deps in GitLab CI | ||
--- | ||
|
||
# GitLab CI | ||
|
||
> Docs coming soon! | ||
## 1. Create a pipeline schedule | ||
|
||
You will need a `DEPS_TOKEN` from [3.dependencies.io](https://3.dependencies.io) and | ||
a `DEPS_GITLAB_TOKEN` if you are running this on a [GitLab repo](/gitlab/). | ||
|
||
[![GitLab pipeline schedule for deps](/assets/img/screenshots/gitlab-ci-pipeline-schedule.png)](/assets/img/screenshots/gitlab-ci-pipeline-schedule.png) | ||
|
||
## 2. Add deps jobs to .gitlab-ci.yml | ||
|
||
This example shows two different languages in use, | ||
each running in their own container. | ||
|
||
The `--type` option is used to run the specific language updates in their respective containers. | ||
|
||
> Note: GitLab CI is supported by [CI autoconfigure](/ci/#autoconfigure). | ||
A minimal example of using deps in `.gitlab-ci.yml` would look like this: | ||
|
||
```yaml | ||
deps-js: | ||
image: "node:latest" | ||
only: [schedules] | ||
script: | ||
- curl https://www.dependencies.io/install.sh | bash -s -- -b $HOME/bin | ||
- $HOME/bin/deps ci --type js | ||
|
||
deps-python: | ||
image: "python:3" | ||
only: [schedules] | ||
script: | ||
- curl https://www.dependencies.io/install.sh | bash -s -- -b $HOME/bin | ||
- $HOME/bin/deps ci --type python | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters