plugin-sonar/.woodpecker/build.yml

49 lines
1.3 KiB
YAML
Raw Permalink Normal View History

2022-10-30 19:29:33 +00:00
pipeline:
2022-11-01 02:06:39 +00:00
sonar-tests:
image: git.kle.li/woodpecker/plugin-sonar:manual
settings:
sonar_url: https://sonar.kle.li
sonar_token:
from_secret: sonar_token
sonar_key: ${CI_REPO_OWNER}:${CI_REPO_NAME}
sonar_quality_enabled: true
branchanalysis: auto
publish-docker-branch-image:
group: build
2022-10-30 19:29:33 +00:00
image: woodpeckerci/plugin-docker-buildx
settings:
repo: git.kle.li/${CI_REPO}
2022-10-31 18:23:40 +00:00
platforms: linux/amd64
2022-11-01 02:06:39 +00:00
tags: ${CI_COMMIT_BRANCH}, ${CI_COMMIT_BRANCH}-${CI_COMMIT_SHA:0:8}
2022-10-30 19:29:33 +00:00
dockerfile: Dockerfile
registry: git.kle.li
username:
from_secret: gitea_user
password:
from_secret: gitea_token
when:
2022-10-31 18:24:47 +00:00
branch: [main, test, dev, release/*]
2022-10-31 17:18:06 +00:00
path:
exclude: ["*.md", "docs/**"]
ignore_message: "[FORCE CI]"
2022-10-30 19:29:33 +00:00
publish-docker-tag-image:
group: build
2022-10-30 19:29:33 +00:00
image: woodpeckerci/plugin-docker-buildx
settings:
repo: git.kle.li/${CI_REPO}
2022-10-31 18:23:40 +00:00
platforms: linux/amd64
2022-11-01 01:57:57 +00:00
tags: ${CI_COMMIT_TAG}
2022-10-30 19:29:33 +00:00
dockerfile: Dockerfile
registry: git.kle.li
username:
from_secret: gitea_user
password:
from_secret: gitea_token
when:
event: tag
2022-10-31 17:18:06 +00:00
path:
exclude: ["*.md", "docs/**"]
ignore_message: "[FORCE CI]"