Update .woodpecker.yml

This commit is contained in:
2025-11-26 20:49:41 +00:00
parent fbb91e9f5a
commit 50ae8abb76

View File

@@ -16,13 +16,15 @@ steps:
commands: commands:
- sonar-scanner \ - sonar-scanner \
-Dsonar.login=$SONAR_TOKEN \ -Dsonar.login=$SONAR_TOKEN \
-Dsonar.host.url=$SONAR_URL -Dsonar.host.url=$SONAR_URL \
-Dsonar.projectKey=dummy-app \
-Dsonar.sources=.
- name: notify - name: notify
image: curlimages/curl image: curlimages/curl
secrets: [ WEBHOOK_URL ] secrets: [ WEBHOOK_URL ]
commands: commands:
- echo "Build completed for $CI_COMMIT_SHA" \ - echo "Build completed: $CI_COMMIT_SHA" \
| curl -X POST -H "Content-Type: text/plain" $WEBHOOK_URL | curl -X POST -H "Content-Type: text/plain" $WEBHOOK_URL
- name: push-to-github - name: push-to-github
@@ -31,5 +33,5 @@ steps:
when: when:
status: [ success ] status: [ success ]
commands: commands:
- git remote add github https://$GITHUB_TOKEN@github.com/<yourname>/dummy-app.git - git remote add github https://$GITHUB_TOKEN@github.com/Magiciian/dummy-app.git
- git push github HEAD:main - git push github HEAD:main