|
| 1 | +when: |
| 2 | + instance: ci.kokuwa.io |
| 3 | + repo: woodpecker/docker |
| 4 | + event: [manual, push, pull_request] |
| 5 | + branch: main |
| 6 | + path: [.woodpecker/build.yaml, Dockerfile, Dockerfile.dockerignore, entrypoint.sh] |
| 7 | + |
| 8 | +variables: |
| 9 | + - step: &pr |
| 10 | + image: kokuwaio/buildctl |
| 11 | + depends_on: [] |
| 12 | + settings: &settings-pr |
| 13 | + platform: [linux/amd64, linux/arm64] |
| 14 | + build-args: {PYPI_MIRROR: "${PYPI_MIRROR}"} |
| 15 | + auth: |
| 16 | + registry.kokuwa.io: |
| 17 | + username: {from_secret: kokuwa_io_username} |
| 18 | + password: {from_secret: kokuwa_io_password} |
| 19 | + annotation: &annotation |
| 20 | + org.opencontainers.image.title: Docker CLI for WoodpeckerCI |
| 21 | + org.opencontainers.image.description: Docker CLI for usage in WoodpeckerCI. |
| 22 | + org.opencontainers.image.url: $CI_REPO_URL |
| 23 | + org.opencontainers.image.documentation: $CI_REPO_URL/README.md |
| 24 | + org.opencontainers.image.source: $CI_REPO_CLONE_URL |
| 25 | + org.opencontainers.image.revision: $CI_COMMIT_SHA |
| 26 | + org.opencontainers.image.vendor: kokuwa.io |
| 27 | + org.opencontainers.image.licenses: EUPL-1.2 |
| 28 | + org.opencontainers.image.ref.name: kokuwaio/docker-cli |
| 29 | + org.opencontainers.image.version: 28.1.1 |
| 30 | + when: |
| 31 | + event: pull_request |
| 32 | + - step: &push |
| 33 | + image: kokuwaio/buildctl |
| 34 | + depends_on: [] |
| 35 | + settings: &settings-push |
| 36 | + <<: *settings-pr |
| 37 | + auth: |
| 38 | + "https://index.docker.io/v1/": |
| 39 | + username: {from_secret: docker_io_username} |
| 40 | + password: {from_secret: docker_io_password} |
| 41 | + ghcr.io: |
| 42 | + username: {from_secret: ghcr_io_username} |
| 43 | + password: {from_secret: ghcr_io_password} |
| 44 | + registry.kokuwa.io: |
| 45 | + username: {from_secret: kokuwa_io_username} |
| 46 | + password: {from_secret: kokuwa_io_password} |
| 47 | + when: |
| 48 | + event: [manual, push] |
| 49 | + branch: main |
| 50 | + |
| 51 | +steps: |
| 52 | + |
| 53 | + dockerd-pr: |
| 54 | + <<: *pr |
| 55 | + settings: |
| 56 | + <<: *settings-pr |
| 57 | + name: registry.kokuwa.io/kokuwaio/dockerd:ci-${CI_PIPELINE_NUMBER} |
| 58 | + target: dockerd |
| 59 | + annotation: |
| 60 | + <<: *annotation |
| 61 | + org.opencontainers.image.title: Docker Daemon for WoodpeckerCI |
| 62 | + org.opencontainers.image.description: Docker daemon for usage in WoodpeckerCI. |
| 63 | + org.opencontainers.image.ref.name: kokuwaio/dockerd |
| 64 | + |
| 65 | + cli-pr: |
| 66 | + <<: *pr |
| 67 | + settings: |
| 68 | + <<: *settings-pr |
| 69 | + name: registry.kokuwa.io/kokuwaio/docker-cli:ci-${CI_PIPELINE_NUMBER} |
| 70 | + target: cli |
| 71 | + |
| 72 | + cli-git-pr: |
| 73 | + <<: *pr |
| 74 | + depends_on: [cli-pr] |
| 75 | + settings: |
| 76 | + <<: *settings-pr |
| 77 | + name: registry.kokuwa.io/kokuwaio/docker-cli:ci-${CI_PIPELINE_NUMBER}-git |
| 78 | + target: cli-git |
| 79 | + |
| 80 | + cli-az-pr: |
| 81 | + <<: *pr |
| 82 | + depends_on: [cli-pr] |
| 83 | + settings: |
| 84 | + <<: *settings-pr |
| 85 | + name: registry.kokuwa.io/kokuwaio/docker-cli:ci-${CI_PIPELINE_NUMBER}-az |
| 86 | + target: cli-az |
| 87 | + |
| 88 | + cli-az-git-pr: |
| 89 | + <<: *pr |
| 90 | + depends_on: [cli-az-pr] |
| 91 | + settings: |
| 92 | + <<: *settings-pr |
| 93 | + name: registry.kokuwa.io/kokuwaio/docker-cli:ci-${CI_PIPELINE_NUMBER}-az-git |
| 94 | + target: cli-az-git |
| 95 | + |
| 96 | + dockerd: |
| 97 | + <<: *push |
| 98 | + settings: |
| 99 | + <<: *settings-push |
| 100 | + name: |
| 101 | + - registry.kokuwa.io/kokuwaio/dockerd:latest |
| 102 | + - registry.kokuwa.io/kokuwaio/dockerd:28.1.1 |
| 103 | + - docker.io/kokuwaio/dockerd:latest |
| 104 | + - docker.io/kokuwaio/dockerd:28.1.1 |
| 105 | + - ghcr.io/kokuwaio/dockerd:latest |
| 106 | + - ghcr.io/kokuwaio/dockerd:28.1.1 |
| 107 | + target: dockerd |
| 108 | + annotation: |
| 109 | + <<: *annotation |
| 110 | + org.opencontainers.image.title: Docker Daemon for WoodpeckerCI |
| 111 | + org.opencontainers.image.description: Docker daemon for usage in WoodpeckerCI. |
| 112 | + org.opencontainers.image.ref.name: kokuwaio/dockerd |
| 113 | + |
| 114 | + cli: |
| 115 | + <<: *push |
| 116 | + depends_on: [cli] |
| 117 | + settings: |
| 118 | + <<: *settings-push |
| 119 | + name: |
| 120 | + - registry.kokuwa.io/kokuwaio/docker-cli:latest |
| 121 | + - registry.kokuwa.io/kokuwaio/dockerd:28.1.1 |
| 122 | + - docker.io/kokuwaio/dockerd:latest |
| 123 | + - docker.io/kokuwaio/dockerd:28.1.1 |
| 124 | + - ghcr.io/kokuwaio/dockerd:latest |
| 125 | + - ghcr.io/kokuwaio/dockerd:28.1.1 |
| 126 | + target: cli |
| 127 | + |
| 128 | + cli-git: |
| 129 | + <<: *push |
| 130 | + settings: |
| 131 | + <<: *settings-push |
| 132 | + name: |
| 133 | + - registry.kokuwa.io/kokuwaio/docker-cli:git |
| 134 | + - registry.kokuwa.io/kokuwaio/dockerd:28.1.1-git |
| 135 | + - docker.io/kokuwaio/dockerd:git |
| 136 | + - docker.io/kokuwaio/dockerd:28.1.1-git |
| 137 | + - ghcr.io/kokuwaio/dockerd:git |
| 138 | + - ghcr.io/kokuwaio/dockerd:28.1.1-git |
| 139 | + target: cli-git |
| 140 | + |
| 141 | + cli-az: |
| 142 | + <<: *push |
| 143 | + depends_on: [cli] |
| 144 | + settings: |
| 145 | + <<: *settings-push |
| 146 | + name: |
| 147 | + - registry.kokuwa.io/kokuwaio/docker-cli:az |
| 148 | + - registry.kokuwa.io/kokuwaio/dockerd:28.1.1-az |
| 149 | + - docker.io/kokuwaio/dockerd:az |
| 150 | + - docker.io/kokuwaio/dockerd:28.1.1-az |
| 151 | + - ghcr.io/kokuwaio/dockerd:az |
| 152 | + - ghcr.io/kokuwaio/dockerd:28.1.1-az |
| 153 | + target: cli-az |
| 154 | + |
| 155 | + cli-az-git: |
| 156 | + <<: *push |
| 157 | + depends_on: [cli-az] |
| 158 | + settings: |
| 159 | + <<: *settings-push |
| 160 | + name: |
| 161 | + - registry.kokuwa.io/kokuwaio/docker-cli:az-git |
| 162 | + - registry.kokuwa.io/kokuwaio/dockerd:28.1.1-az-git |
| 163 | + - docker.io/kokuwaio/dockerd:az-git |
| 164 | + - docker.io/kokuwaio/dockerd:28.1.1-az-git |
| 165 | + - ghcr.io/kokuwaio/dockerd:az-git |
| 166 | + - ghcr.io/kokuwaio/dockerd:28.1.1-az-git |
| 167 | + target: cli-az-git |
0 commit comments