1
0
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:
6543 2024-09-01 15:31:52 +02:00 committed by GitHub
parent e4f954ef94
commit d02c6b7266
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 11 additions and 11 deletions

View File

@ -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

View File

@ -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}
```

View File

@ -34,7 +34,7 @@ steps:
- go test
- name: publish
image: woodpeckerci/plugin-docker-buildx
image: woodpeckerci/plugin-kaniko
settings:
repo: foo/bar
tags: latest

View File

@ -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

View File

@ -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,
},
}