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

View file

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

View file

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

View file

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

View file

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