From 91a77921b9b2f41709b729569438577e7f34578b Mon Sep 17 00:00:00 2001 From: rohit Date: Wed, 26 Nov 2025 20:54:23 +0000 Subject: [PATCH] Update .woodpecker.yml --- .woodpecker.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index d612227..6ad1d8f 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,3 +1,6 @@ +when: + event: [ push ] + steps: - name: clone image: alpine/git @@ -12,7 +15,11 @@ steps: - name: sonar-scan image: sonarsource/sonar-scanner-cli - secrets: [ SONAR_TOKEN, SONAR_URL ] + environment: + SONAR_TOKEN: + from_secret: SONAR_TOKEN + SONAR_URL: + from_secret: SONAR_URL commands: - > sonar-scanner @@ -23,7 +30,9 @@ steps: - name: notify image: curlimages/curl - secrets: [ WEBHOOK_URL ] + environment: + WEBHOOK_URL: + from_secret: WEBHOOK_URL commands: - > echo "Build completed: $CI_COMMIT_SHA" | @@ -31,7 +40,9 @@ steps: - name: push-to-github image: alpine/git - secrets: [ GITHUB_TOKEN ] + environment: + GITHUB_TOKEN: + from_secret: GITHUB_TOKEN when: status: [ success ] commands: