plugin-sonar/.woodpecker/build.yml

47 lines
1.2 KiB
YAML
Raw Normal View History

2022-10-30 19:29:33 +00:00
pipeline:
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-image:
image: woodpeckerci/plugin-docker-buildx
settings:
repo: git.kle.li/${CI_REPO}
platforms: linux/amd64
tag: ${CI_COMMIT_BRANCH}
dockerfile: Dockerfile
registry: git.kle.li
username:
from_secret: gitea_user
password:
from_secret: gitea_token
when:
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:
image: woodpeckerci/plugin-docker-buildx
settings:
repo: git.kle.li/${CI_REPO}
platforms: linux/amd64
tag: ${CI_COMMIT_TAG},
dockerfile: Dockerfile
registry: git.kle.li
username:
from_secret: gitea_user
password:
from_secret: gitea_token
when:
tag: v*
2022-10-31 17:18:06 +00:00
path:
exclude: ["*.md", "docs/**"]
ignore_message: "[FORCE CI]"