|
| 1 | +when: |
| 2 | + instance: ci.kokuwa.io |
| 3 | + repo: woodpecker/shellcheck |
| 4 | + event: [manual, push, pull_request] |
| 5 | + branch: main |
| 6 | + path: [.woodpecker/build.yaml, Dockerfile, Dockerfile.dockerignore, entrypoint.sh] |
| 7 | + |
| 8 | +steps: |
| 9 | + |
| 10 | + build: |
| 11 | + image: kokuwaio/buildctl |
| 12 | + settings: &settings |
| 13 | + name: registry.kokuwa.io/kokuwaio/shellcheck:ci-${CI_PIPELINE_NUMBER} |
| 14 | + auth: |
| 15 | + registry.kokuwa.io: |
| 16 | + username: {from_secret: kokuwa_io_username} |
| 17 | + password: {from_secret: kokuwa_io_password} |
| 18 | + platform: [linux/amd64, linux/arm64] |
| 19 | + annotation: |
| 20 | + org.opencontainers.image.title: Shellcheck WoodpeckerCI Plugin |
| 21 | + org.opencontainers.image.description: A WoodpeckerCI plugin for shellcheck to lint shell files. |
| 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/shellcheck |
| 29 | + org.opencontainers.image.version: v0.10.0 |
| 30 | + when: |
| 31 | + event: pull_request |
| 32 | + |
| 33 | + push: |
| 34 | + image: kokuwaio/buildctl |
| 35 | + settings: |
| 36 | + <<: *settings |
| 37 | + name: |
| 38 | + - registry.kokuwa.io/kokuwaio/shellcheck:latest |
| 39 | + - registry.kokuwa.io/kokuwaio/shellcheck:v0.10.0 |
| 40 | + - docker.io/kokuwaio/shellcheck:latest |
| 41 | + - docker.io/kokuwaio/shellcheck:v0.10.0 |
| 42 | + - ghcr.io/kokuwaio/shellcheck:latest |
| 43 | + - ghcr.io/kokuwaio/shellcheck:v0.10.0 |
| 44 | + auth: |
| 45 | + "https://index.docker.io/v1/": |
| 46 | + username: {from_secret: docker_io_username} |
| 47 | + password: {from_secret: docker_io_password} |
| 48 | + ghcr.io: |
| 49 | + username: {from_secret: ghcr_io_username} |
| 50 | + password: {from_secret: ghcr_io_password} |
| 51 | + registry.kokuwa.io: |
| 52 | + username: {from_secret: kokuwa_io_username} |
| 53 | + password: {from_secret: kokuwa_io_password} |
| 54 | + when: |
| 55 | + event: [manual, push] |
| 56 | + branch: main |
0 commit comments