plugin-sonar/.woodpecker/build.yaml

51 lines
1.2 KiB
YAML

pipeline:
debug:
image: busybox
commands:
- env
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/*]
path:
exclude: ["*.md", "docs/**"]
ignore_message: "[FORCE CI]"
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*
path:
exclude: ["*.md", "docs/**"]
ignore_message: "[FORCE CI]"