Update .woodpecker.yml

This commit is contained in:
2025-11-26 20:54:23 +00:00
parent ffd7dd05af
commit 91a77921b9

View File

@@ -1,3 +1,6 @@
when:
event: [ push ]
steps: steps:
- name: clone - name: clone
image: alpine/git image: alpine/git
@@ -12,7 +15,11 @@ steps:
- name: sonar-scan - name: sonar-scan
image: sonarsource/sonar-scanner-cli image: sonarsource/sonar-scanner-cli
secrets: [ SONAR_TOKEN, SONAR_URL ] environment:
SONAR_TOKEN:
from_secret: SONAR_TOKEN
SONAR_URL:
from_secret: SONAR_URL
commands: commands:
- > - >
sonar-scanner sonar-scanner
@@ -23,7 +30,9 @@ steps:
- name: notify - name: notify
image: curlimages/curl image: curlimages/curl
secrets: [ WEBHOOK_URL ] environment:
WEBHOOK_URL:
from_secret: WEBHOOK_URL
commands: commands:
- > - >
echo "Build completed: $CI_COMMIT_SHA" | echo "Build completed: $CI_COMMIT_SHA" |
@@ -31,7 +40,9 @@ steps:
- name: push-to-github - name: push-to-github
image: alpine/git image: alpine/git
secrets: [ GITHUB_TOKEN ] environment:
GITHUB_TOKEN:
from_secret: GITHUB_TOKEN
when: when:
status: [ success ] status: [ success ]
commands: commands: