Skip to content

Commit

Permalink
docs: Updated CI guide (#4952)
Browse files Browse the repository at this point in the history
* Added feedback

Signed-off-by: Vikram Vaswani <vikram@dagger.io>

* Fixed as per feedback

Signed-off-by: Vikram Vaswani <vikram@dagger.io>

* docs: Finishing touches in CI guide

Signed-off-by: Helder Correia <174525+helderco@users.noreply.github.com>

---------

Signed-off-by: Vikram Vaswani <vikram@dagger.io>
Signed-off-by: Helder Correia <174525+helderco@users.noreply.github.com>
Co-authored-by: Helder Correia <174525+helderco@users.noreply.github.com>
  • Loading branch information
vikram-dagger and helderco committed Apr 22, 2023
1 parent 321d5e5 commit f0a4a32
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 17 deletions.
8 changes: 6 additions & 2 deletions docs/current/guides/145912-ci.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,19 +102,23 @@ This guide assumes that:
```groovy title="Jenkinsfile" file=./snippets/ci/go/Jenkinsfile
```

Requires `docker` client and `go` installed on your Jenkins agent, a Docker host available (can be `docker:dind`), and agents labeled in Jenkins with `dagger`.

</TabItem>
<TabItem value="Node.js">

```groovy title="Jenkinsfile" file=./snippets/ci/nodejs/Jenkinsfile
```

Requires `docker` client and `node` installed on your Jenkins agent, a Docker host available (can be `docker:dind`), and agents labeled in Jenkins with `dagger`.

</TabItem>
<TabItem value="Python">

```groovy title="Jenkinsfile" file=./snippets/ci/python/Jenkinsfile
```

Requires `docker` client and `python` installed on your Jenkins agent, a Docker host available (can be `docker:dind`), and agents labeled in Jenkins with `dagger`.

</TabItem>
</Tabs>

Requires `docker` client and `go` installed on your Jenkins agent, a Docker host available (can be `docker:dind`), and agents labeled in Jenkins with `dagger`.
2 changes: 1 addition & 1 deletion docs/current/guides/snippets/ci/go/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.20
go-version: '1.20'
- uses: actions/checkout@v3
- name: Run Dagger pipeline
run: go run main.go
4 changes: 1 addition & 3 deletions docs/current/guides/snippets/ci/python/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ pipeline {
stage("dagger") {
steps {
sh '''
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install dagger-io
pip install -r requirements.txt
python main.py
'''
}
Expand Down
5 changes: 1 addition & 4 deletions docs/current/guides/snippets/ci/python/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ jobs:
python-version: '3.11'
- uses: actions/checkout@v3
- name: Install deps
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install dagger-io
run: pip install -r requirements.txt
- name: Run Dagger pipeline
run: python main.py
5 changes: 1 addition & 4 deletions docs/current/guides/snippets/ci/python/circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ jobs:
docker_layer_caching: true
- run:
name: Install deps
command: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install dagger-io
command: pip install -r requirements.txt
- run:
name: Dagger Pipeline
command: python main.py
Expand Down
4 changes: 1 addition & 3 deletions docs/current/guides/snippets/ci/python/gitlab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,5 @@
build:
extends: [.dagger]
script:
- python -m pip install --upgrade pip
- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- pip install dagger-io
- pip install -r requirements.txt
- python main.py

0 comments on commit f0a4a32

Please sign in to comment.