diff --git a/.woodpecker/build.yaml b/.woodpecker/build.yaml index 39058ea..9267312 100644 --- a/.woodpecker/build.yaml +++ b/.woodpecker/build.yaml @@ -6,37 +6,49 @@ when: path: [.woodpecker/build.yaml, Dockerfile, Dockerfile.dockerignore, entrypoint.sh] variables: - - settings: &settings - platform: [linux/amd64, linux/arm64] - 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} - annotation: &annotation - org.opencontainers.image.title: Docker CLI for WoodpeckerCI - org.opencontainers.image.description: Docker CLI for usage in WoodpeckerCI. - org.opencontainers.image.url: $CI_REPO_URL - org.opencontainers.image.documentation: $CI_REPO_URL/README.md - org.opencontainers.image.source: $CI_REPO_CLONE_URL - org.opencontainers.image.revision: $CI_COMMIT_SHA - org.opencontainers.image.vendor: kokuwa.io - 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: [] + settings: &settings-pr + platform: [linux/amd64, linux/arm64] + 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} + annotation: &annotation + org.opencontainers.image.title: Docker CLI for WoodpeckerCI + org.opencontainers.image.description: Docker CLI for usage in WoodpeckerCI. + org.opencontainers.image.url: $CI_REPO_URL + org.opencontainers.image.documentation: $CI_REPO_URL/README.md + org.opencontainers.image.source: $CI_REPO_CLONE_URL + org.opencontainers.image.revision: $CI_COMMIT_SHA + org.opencontainers.image.vendor: kokuwa.io + org.opencontainers.image.licenses: EUPL-1.2 + org.opencontainers.image.ref.name: kokuwaio/docker-cli + org.opencontainers.image.version: 28.1.1 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