mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-25 11:21:02 +00:00
Use kaniko plugin in docs as example (#4072)
This commit is contained in:
parent
e4f954ef94
commit
d02c6b7266
5 changed files with 11 additions and 11 deletions
|
@ -104,7 +104,7 @@ When using the `local` backend, the `image` entry is used to specify the shell,
|
||||||
- go test
|
- go test
|
||||||
|
|
||||||
- name: publish
|
- name: publish
|
||||||
+ image: woodpeckerci/plugin-docker-buildx
|
+ image: woodpeckerci/plugin-kaniko
|
||||||
repo: foo/bar
|
repo: foo/bar
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
@ -484,7 +484,7 @@ Normally steps of a workflow are executed serially in the order in which they ar
|
||||||
- go build
|
- go build
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: woodpeckerci/plugin-docker-buildx
|
image: woodpeckerci/plugin-kaniko
|
||||||
settings:
|
settings:
|
||||||
repo: foo/bar
|
repo: foo/bar
|
||||||
+ depends_on: [build, test] # deploy will be executed after build and test finished
|
+ depends_on: [build, test] # deploy will be executed after build and test finished
|
||||||
|
|
|
@ -172,7 +172,7 @@ Example commit substitution:
|
||||||
```diff
|
```diff
|
||||||
steps:
|
steps:
|
||||||
- name: docker
|
- name: docker
|
||||||
image: woodpeckerci/plugin-docker-buildx
|
image: woodpeckerci/plugin-kaniko
|
||||||
settings:
|
settings:
|
||||||
+ tags: ${CI_COMMIT_SHA}
|
+ tags: ${CI_COMMIT_SHA}
|
||||||
```
|
```
|
||||||
|
@ -182,7 +182,7 @@ Example tag substitution:
|
||||||
```diff
|
```diff
|
||||||
steps:
|
steps:
|
||||||
- name: docker
|
- name: docker
|
||||||
image: woodpeckerci/plugin-docker-buildx
|
image: woodpeckerci/plugin-kaniko
|
||||||
settings:
|
settings:
|
||||||
+ tags: ${CI_COMMIT_TAG}
|
+ tags: ${CI_COMMIT_TAG}
|
||||||
```
|
```
|
||||||
|
@ -210,7 +210,7 @@ Example variable substitution with substring:
|
||||||
```diff
|
```diff
|
||||||
steps:
|
steps:
|
||||||
- name: docker
|
- name: docker
|
||||||
image: woodpeckerci/plugin-docker-buildx
|
image: woodpeckerci/plugin-kaniko
|
||||||
settings:
|
settings:
|
||||||
+ tags: ${CI_COMMIT_SHA:0:8}
|
+ tags: ${CI_COMMIT_SHA:0:8}
|
||||||
```
|
```
|
||||||
|
@ -220,7 +220,7 @@ Example variable substitution strips `v` prefix from `v.1.0.0`:
|
||||||
```diff
|
```diff
|
||||||
steps:
|
steps:
|
||||||
- name: docker
|
- name: docker
|
||||||
image: woodpeckerci/plugin-docker-buildx
|
image: woodpeckerci/plugin-kaniko
|
||||||
settings:
|
settings:
|
||||||
+ tags: ${CI_COMMIT_TAG##v}
|
+ tags: ${CI_COMMIT_TAG##v}
|
||||||
```
|
```
|
||||||
|
|
|
@ -34,7 +34,7 @@ steps:
|
||||||
- go test
|
- go test
|
||||||
|
|
||||||
- name: publish
|
- name: publish
|
||||||
image: woodpeckerci/plugin-docker-buildx
|
image: woodpeckerci/plugin-kaniko
|
||||||
settings:
|
settings:
|
||||||
repo: foo/bar
|
repo: foo/bar
|
||||||
tags: latest
|
tags: latest
|
||||||
|
|
|
@ -39,7 +39,7 @@ steps:
|
||||||
- go build
|
- go build
|
||||||
- go test
|
- go test
|
||||||
publish:
|
publish:
|
||||||
image: woodpeckerci/plugin-docker-buildx
|
image: woodpeckerci/plugin-kaniko
|
||||||
settings:
|
settings:
|
||||||
repo: foo/bar
|
repo: foo/bar
|
||||||
foo: bar
|
foo: bar
|
||||||
|
@ -61,7 +61,7 @@ steps:
|
||||||
- go build
|
- go build
|
||||||
- go test
|
- go test
|
||||||
- name: publish
|
- name: publish
|
||||||
image: woodpeckerci/plugin-docker-buildx
|
image: woodpeckerci/plugin-kaniko
|
||||||
settings:
|
settings:
|
||||||
repo: foo/bar
|
repo: foo/bar
|
||||||
foo: bar
|
foo: bar
|
||||||
|
|
|
@ -255,8 +255,8 @@ func Test_matchImage(t *testing.T) {
|
||||||
want: false,
|
want: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
from: "woodpeckerci/plugin-docker-buildx",
|
from: "woodpeckerci/plugin-kaniko",
|
||||||
to: "docker.io/woodpeckerci/plugin-docker-buildx",
|
to: "docker.io/woodpeckerci/plugin-kaniko",
|
||||||
want: true,
|
want: true,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue