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