1
1
This commit is contained in:
parent
7db99e0fa6
commit
ee0ff67872
5 changed files with 75 additions and 80 deletions
|
@ -1,9 +1,8 @@
|
|||
when:
|
||||
instance: ci.kokuwa.io
|
||||
repo: woodpecker/dockerd
|
||||
event: [manual, push, pull_request]
|
||||
branch: main
|
||||
path: [.woodpecker/build.yaml, Dockerfile, Dockerfile.dockerignore, entrypoint.sh]
|
||||
event: pull_request
|
||||
path: [.woodpecker/build.yaml, .woodpecker/test.yaml, Dockerfile, Dockerfile.dockerignore, entrypoint.sh]
|
||||
|
||||
depends_on: [build]
|
||||
matrix:
|
||||
|
@ -11,26 +10,28 @@ matrix:
|
|||
labels:
|
||||
platform: linux/${PLATFORM}
|
||||
|
||||
services:
|
||||
- name: dockerd
|
||||
image: registry.kokuwa.io/kokuwaio/dockerd:ci-${CI_PIPELINE_NUMBER}
|
||||
ports: [2375]
|
||||
privileged: true
|
||||
|
||||
steps:
|
||||
|
||||
pr:
|
||||
image: registry.kokuwa.io/kokuwaio/dockerd:ci-${CI_PIPELINE_NUMBER}
|
||||
commands: dockerd --version
|
||||
when:
|
||||
event: pull_request
|
||||
info:
|
||||
image: kokuwaio/docker-cli
|
||||
commands: docker info
|
||||
environment:
|
||||
DOCKER_HOST: tcp://dockerd:2375
|
||||
|
||||
kokuwa.io: &version
|
||||
image: registry.kokuwa.io/kokuwaio/dockerd
|
||||
pull: true
|
||||
commands: dockerd --version
|
||||
when:
|
||||
event: [manual, push]
|
||||
branch: main
|
||||
pull:
|
||||
image: kokuwaio/docker-cli
|
||||
commands: docker pull bash
|
||||
environment:
|
||||
DOCKER_HOST: tcp://dockerd:2375
|
||||
|
||||
docker.io:
|
||||
image: docker.io/kokuwaio/dockerd
|
||||
<<: *version
|
||||
|
||||
ghcr.io:
|
||||
image: ghcr.io/kokuwaio/dockerd
|
||||
<<: *version
|
||||
run:
|
||||
image: kokuwaio/docker-cli
|
||||
commands: docker run --rm bash uname -a
|
||||
environment:
|
||||
DOCKER_HOST: tcp://dockerd:2375
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue