1
This commit is contained in:
parent
f9eff77790
commit
01b16c2e42
12 changed files with 209 additions and 132 deletions
|
@ -1,20 +1,59 @@
|
|||
when:
|
||||
instance: ci.kokuwa.io
|
||||
repo: woodpecker/buildctl
|
||||
event: [manual, push, pull_request]
|
||||
branch: main
|
||||
path: [.woodpecker/build.yaml, .woodpecker/push.yaml, Dockerfile, Dockerfile.dockerignore, entrypoint.sh]
|
||||
path: [.woodpecker/build.yaml, Dockerfile, Dockerfile.dockerignore, entrypoint.sh]
|
||||
|
||||
steps:
|
||||
|
||||
build:
|
||||
image: kokuwaio/buildctl
|
||||
settings:
|
||||
name: registry.kokuwa.io/yamllint:$CI_PIPELINE_NUMBER
|
||||
annotations:
|
||||
org.opencontainers.image.title: Yamllint Plugin"
|
||||
image: kokuwaio/buildctl:v0.21.0
|
||||
pull: true
|
||||
depends_on: []
|
||||
settings: &settings
|
||||
name: registry.kokuwa.io/buildctl:$CI_PIPELINE_NUMBER
|
||||
auth:
|
||||
registry.kokuwa.io:
|
||||
username: {from_secret: kokuwa_io_username}
|
||||
password: {from_secret: kokuwa_io_password}
|
||||
platform: [linux/amd64, linux/arm64]
|
||||
annotation:
|
||||
org.opencontainers.image.title: Buildctl Plugin
|
||||
org.opencontainers.image.description: A Woodpecker CI plugin for yamllint to lint yaml files.
|
||||
org.opencontainers.image.url: $CI_REPO_URL
|
||||
org.opencontainers.image.documentation: $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: GPL-3.0-or-later
|
||||
org.opencontainers.image.licenses: EUPL-1.2
|
||||
org.opencontainers.image.ref.name: kokuwaio/buildctl
|
||||
org.opencontainers.image.version: v0.21.0
|
||||
# when:
|
||||
# event: pull_request
|
||||
|
||||
push:
|
||||
image: kokuwaio/buildctl:v0.21.0
|
||||
pull: true
|
||||
settings:
|
||||
<<: *settings
|
||||
name:
|
||||
- registry.kokuwa.io/buildctl:latest
|
||||
- registry.kokuwa.io/buildctl:v0.21.0
|
||||
- docker.io/kokuwaio/buildctl:latest
|
||||
- docker.io/kokuwaio/buildctl:v0.21.0
|
||||
- ghcr.io/kokuwaio/buildctl:latest
|
||||
- ghcr.io/kokuwaio/buildctl:v0.21.0
|
||||
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
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
when:
|
||||
instance: ci.kokuwa.io
|
||||
repo: woodpecker/buildctl
|
||||
event: push
|
||||
event: [manual, push]
|
||||
branch: main
|
||||
path: README.md
|
||||
path: [.woodpecker/dockerhub.yaml, README.md]
|
||||
|
||||
steps:
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
when:
|
||||
event: [cron, manual, push, pull_request]
|
||||
event: [manual, push, pull_request]
|
||||
branch: main
|
||||
path: [.woodpecker/lint.yaml, renovate.json, "**/*.yaml", "**/*.md", "**/*.sh", "**/Dockerfile"]
|
||||
|
||||
|
@ -23,7 +23,7 @@ steps:
|
|||
dockerfile:
|
||||
image: kokuwaio/hadolint
|
||||
depends_on: []
|
||||
when: [path: [.woodpecker/lint.yaml, .hadolint.yaml, "**/Dockerfile"]]
|
||||
when: [path: [.woodpecker/lint.yaml, "**/Dockerfile"]]
|
||||
|
||||
shellcheck:
|
||||
image: kokuwaio/shellcheck
|
||||
|
|
|
@ -1,32 +0,0 @@
|
|||
when:
|
||||
instance: ci.kokuwa.io
|
||||
repo: woodpecker/buildctl
|
||||
event: push
|
||||
branch: main
|
||||
path: [.woodpecker/build.yaml, .woodpecker/push.yaml, Dockerfile, Dockerfile.dockerignore, entrypoint.sh]
|
||||
|
||||
depends_on: [build]
|
||||
skip_clone: true
|
||||
|
||||
steps:
|
||||
|
||||
docker.io: &push
|
||||
image: quay.io/skopeo/stable:v1.18.0
|
||||
depends_on: [manifest]
|
||||
commands:
|
||||
- echo "$AUTH" > /tmp/auth.json
|
||||
- skopeo copy --all --preserve-digests --dest-precompute-digests
|
||||
docker://ci-registry.schnabel.org/kokuwaio/yamllint:$CI_PIPELINE_NUMBER
|
||||
docker://$URL/kokuwaio/yamllint:1.37.0
|
||||
- skopeo copy --all --preserve-digests --dest-precompute-digests
|
||||
docker://ci-registry.schnabel.org/kokuwaio/yamllint:$CI_PIPELINE_NUMBER
|
||||
docker://$URL/kokuwaio/yamllint:latest
|
||||
environment:
|
||||
URL: docker.io
|
||||
AUTH: {from_secret: DOCKER_IO_AUTH}
|
||||
|
||||
ghcr.io:
|
||||
<<: *push
|
||||
environment:
|
||||
URL: ghcr.io
|
||||
AUTH: {from_secret: GHCR_IO_AUTH}
|
|
@ -1,11 +1,12 @@
|
|||
when:
|
||||
instance: ci.kokuwa.io
|
||||
repo: woodpecker/buildctl
|
||||
event: push
|
||||
event: [manual, push, pull_request]
|
||||
branch: main
|
||||
path: [.woodpecker/build.yaml, .woodpecker/push.yaml, .woodpecker/test.yaml, Dockerfile, Dockerfile.dockerignore, entrypoint.sh]
|
||||
path: [.woodpecker/build.yaml, Dockerfile, Dockerfile.dockerignore, entrypoint.sh]
|
||||
|
||||
depends_on: [push]
|
||||
depends_on: [build]
|
||||
skip_clone: true
|
||||
matrix:
|
||||
PLATFORM: [amd64, arm64]
|
||||
labels:
|
||||
|
@ -13,17 +14,25 @@ labels:
|
|||
|
||||
steps:
|
||||
|
||||
kokuwa.io:
|
||||
pr:
|
||||
image: registry.kokuwa.io/buildctl:$CI_PIPELINE_NUMBER
|
||||
pull: true
|
||||
commands: buildctl --version
|
||||
when:
|
||||
event: pull_request
|
||||
|
||||
kokuwa.io: &version
|
||||
image: kokuwa.io/buildctl
|
||||
pull: true
|
||||
commands: buildctl --version
|
||||
when:
|
||||
event: [manual, push]
|
||||
branch: main
|
||||
|
||||
docker.io:
|
||||
image: docker.io/kokuwaio/buildctl
|
||||
pull: true
|
||||
commands: buildctl --version
|
||||
<<: *version
|
||||
|
||||
ghcr.io:
|
||||
image: ghcr.io/kokuwaio/buildctl
|
||||
pull: true
|
||||
commands: buildctl --version
|
||||
<<: *version
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue