1
This commit is contained in:
parent
f09b6486f9
commit
db4412c876
10 changed files with 89 additions and 85 deletions
|
@ -1,20 +1,43 @@
|
|||
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
|
||||
settings: &settings
|
||||
name: registry.kokuwa.io/buildctl:$CI_PIPELINE_NUMBER
|
||||
auth1: {from_secret: AUTH}
|
||||
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
|
||||
settings:
|
||||
<<: *settings
|
||||
names:
|
||||
- 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
|
||||
when:
|
||||
event: [manual, push]
|
||||
branch: main
|
||||
|
|
|
@ -3,7 +3,7 @@ when:
|
|||
repo: woodpecker/buildctl
|
||||
event: push
|
||||
branch: main
|
||||
path: README.md
|
||||
path: [.woodpecker/dockerhub.yaml, README.md]
|
||||
|
||||
steps:
|
||||
|
||||
|
|
|
@ -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.19.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}
|
|
@ -3,9 +3,10 @@ when:
|
|||
repo: woodpecker/buildctl
|
||||
event: push
|
||||
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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue