Skip to content

Commit

Permalink
docs: Add a GitLab pipeline example
Browse files Browse the repository at this point in the history
  • Loading branch information
bheesham committed Aug 7, 2024
1 parent ccdd47d commit 334ca1d
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/plugins/create.md
Original file line number Diff line number Diff line change
Expand Up @@ -874,6 +874,25 @@ os:
- osx
```
### GitLab Config
A simple GitLab pipeline would look something like:
```
stages:
- test
plugin:
stage: test
image: ubuntu:latest
script:
- apt-get -qq update
- apt-get install -qq -y git curl
- git clone https://github.com/asdf-vm/asdf.git asdf
- source asdf/asdf.sh
- asdf plugin test <MY TOOL> "$CI_REPOSITORY_URL" --asdf-plugin-gitref "$CI_COMMIT_REF_NAME" '<MY TOOL> --version'
```
::: tip NOTE
When using another CI you may need to pass a relative path to the plugin
Expand Down

0 comments on commit 334ca1d

Please sign in to comment.