Files
docker-sonarqube/.drone.yml
Mpho raf e32f32f97c
Some checks failed
continuous-integration/drone/pr Build is failing
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is passing
fix pull errors
2023-05-26 01:12:17 +02:00

65 lines
1.5 KiB
YAML

kind: pipeline
type: docker
name: sonarqube_Build
platform:
arch: arm64
steps:
- name: dryrun-sonarqube-build
image: plugins/docker
settings:
repo:
from_secret: docker_repo
registry:
from_secret: docker_regst
dockerfile: 9-comm/Dockerfile
context: ./9-comm
insecure: true
tags: test
dry_run: true
when:
branch:
exclude:
- master
- name: docker-build-push
image: plugins/docker
settings:
repo:
from_secret: docker_repo
username:
from_secret: docker_user
password:
from_secret: docker_pass
registry:
from_secret: docker_regst
cache_from:
from_secret: docker_repo
dockerfile: 9-comm/Dockerfile
context: ./9-comm
auto_tag: true
insecure: true
when:
branch:
- master
event:
- push
- tag
- name: send build notification
image: appleboy/drone-telegram
settings:
token:
from_secret: TELE_TOKEN
to:
from_secret : TELE_GID
message: "{{#success build.status}} ✅ Build #{{build.number}} of `{{repo.name}}` succeeded.\n\n📝 Commit by {{commit.author}} on `{{commit.branch}}`:\n``` {{commit.message}} ```\n\n🌐 {{ build.link }} {{else}} ❌ Build #{{build.number}} of `{{repo.name}}` failed.\n\n📝 Commit by {{commit.author}} on `{{commit.branch}}`:\n``` {{commit.message}} ```\n\n🌐 {{ build.link }} {{/success}}\n\n timecost: {{since build.started}}\n"
when:
branch:
- master
event:
- push
- tag