2
This commit is contained in:
parent
d099e8395c
commit
93ab03a18e
1 changed files with 44 additions and 32 deletions
|
@ -6,7 +6,10 @@ when:
|
|||
path: [.woodpecker/build.yaml, Dockerfile, Dockerfile.dockerignore, entrypoint.sh]
|
||||
|
||||
variables:
|
||||
- settings: &settings
|
||||
- step: &pr
|
||||
image: kokuwaio/buildctl
|
||||
depends_on: []
|
||||
settings: &settings-pr
|
||||
platform: [linux/amd64, linux/arm64]
|
||||
auth:
|
||||
"https://index.docker.io/v1/":
|
||||
|
@ -29,14 +32,23 @@ variables:
|
|||
org.opencontainers.image.licenses: EUPL-1.2
|
||||
org.opencontainers.image.ref.name: kokuwaio/docker-cli
|
||||
org.opencontainers.image.version: 28.1.1
|
||||
- step: &pr
|
||||
image: kokuwaio/buildctl
|
||||
depends_on: []
|
||||
when:
|
||||
event: pull_request
|
||||
- step: &push
|
||||
image: kokuwaio/buildctl
|
||||
depends_on: []
|
||||
settings: &settings-push
|
||||
<<: *settings-pr
|
||||
auth:
|
||||
"https://index.docker.io/v1/":
|
||||
username: {from_secret: docker_io_username}
|
||||
password: {from_secret: docker_io_password}
|
||||
ghcr.io:
|
||||
username: {from_secret: ghcr_io_username}
|
||||
password: {from_secret: ghcr_io_password}
|
||||
registry.kokuwa.io:
|
||||
username: {from_secret: kokuwa_io_username}
|
||||
password: {from_secret: kokuwa_io_password}
|
||||
when:
|
||||
event: [manual, push]
|
||||
branch: main
|
||||
|
@ -46,7 +58,7 @@ steps:
|
|||
dockerd-pr:
|
||||
<<: *pr
|
||||
settings:
|
||||
<<: *settings
|
||||
<<: *settings-pr
|
||||
name: registry.kokuwa.io/kokuwaio/dockerd:ci-${CI_PIPELINE_NUMBER}
|
||||
target: dockerd
|
||||
annotation:
|
||||
|
@ -58,7 +70,7 @@ steps:
|
|||
cli-pr:
|
||||
<<: *pr
|
||||
settings:
|
||||
<<: *settings
|
||||
<<: *settings-pr
|
||||
name: registry.kokuwa.io/kokuwaio/docker-cli:ci-${CI_PIPELINE_NUMBER}
|
||||
target: cli
|
||||
|
||||
|
@ -66,7 +78,7 @@ steps:
|
|||
<<: *pr
|
||||
depends_on: [cli-pr]
|
||||
settings:
|
||||
<<: *settings
|
||||
<<: *settings-pr
|
||||
name: registry.kokuwa.io/kokuwaio/docker-cli:ci-${CI_PIPELINE_NUMBER}-git
|
||||
target: cli-git
|
||||
|
||||
|
@ -74,7 +86,7 @@ steps:
|
|||
<<: *pr
|
||||
depends_on: [cli-pr]
|
||||
settings:
|
||||
<<: *settings
|
||||
<<: *settings-pr
|
||||
name: registry.kokuwa.io/kokuwaio/docker-cli:ci-${CI_PIPELINE_NUMBER}-az
|
||||
target: cli-az
|
||||
|
||||
|
@ -89,7 +101,7 @@ steps:
|
|||
dockerd:
|
||||
<<: *push
|
||||
settings:
|
||||
<<: *settings
|
||||
<<: *settings-push
|
||||
name:
|
||||
- registry.kokuwa.io/kokuwaio/dockerd:latest
|
||||
- registry.kokuwa.io/kokuwaio/dockerd:28.1.1
|
||||
|
@ -108,7 +120,7 @@ steps:
|
|||
<<: *push
|
||||
depends_on: [cli]
|
||||
settings:
|
||||
<<: *settings
|
||||
<<: *settings-push
|
||||
name:
|
||||
- registry.kokuwa.io/kokuwaio/docker-cli:latest
|
||||
- registry.kokuwa.io/kokuwaio/dockerd:28.1.1
|
||||
|
@ -121,7 +133,7 @@ steps:
|
|||
cli-git:
|
||||
<<: *push
|
||||
settings:
|
||||
<<: *settings
|
||||
<<: *settings-push
|
||||
name:
|
||||
- registry.kokuwa.io/kokuwaio/docker-cli:git
|
||||
- registry.kokuwa.io/kokuwaio/dockerd:28.1.1-git
|
||||
|
@ -135,7 +147,7 @@ steps:
|
|||
<<: *push
|
||||
depends_on: [cli]
|
||||
settings:
|
||||
<<: *settings
|
||||
<<: *settings-push
|
||||
name:
|
||||
- registry.kokuwa.io/kokuwaio/docker-cli:az
|
||||
- registry.kokuwa.io/kokuwaio/dockerd:28.1.1-az
|
||||
|
@ -149,7 +161,7 @@ steps:
|
|||
<<: *push
|
||||
depends_on: [cli-az]
|
||||
settings:
|
||||
<<: *settings
|
||||
<<: *settings-push
|
||||
name:
|
||||
- registry.kokuwa.io/kokuwaio/docker-cli:az-git
|
||||
- registry.kokuwa.io/kokuwaio/dockerd:28.1.1-az-git
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue