49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
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-branch-image:
|
|
group: build
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
settings:
|
|
repo: git.kle.li/${CI_REPO}
|
|
platforms: linux/amd64
|
|
tags: ${CI_COMMIT_BRANCH}, ${CI_COMMIT_BRANCH}-${CI_COMMIT_SHA:0:8}
|
|
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:
|
|
group: build
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
settings:
|
|
repo: git.kle.li/${CI_REPO}
|
|
platforms: linux/amd64
|
|
tags: ${CI_COMMIT_TAG}
|
|
dockerfile: Dockerfile
|
|
registry: git.kle.li
|
|
username:
|
|
from_secret: gitea_user
|
|
password:
|
|
from_secret: gitea_token
|
|
when:
|
|
event: tag
|
|
path:
|
|
exclude: ["*.md", "docs/**"]
|
|
ignore_message: "[FORCE CI]"
|