Update .woodpecker.yml
This commit is contained in:
@@ -16,13 +16,15 @@ steps:
|
||||
commands:
|
||||
- sonar-scanner \
|
||||
-Dsonar.login=$SONAR_TOKEN \
|
||||
-Dsonar.host.url=$SONAR_URL
|
||||
-Dsonar.host.url=$SONAR_URL \
|
||||
-Dsonar.projectKey=dummy-app \
|
||||
-Dsonar.sources=.
|
||||
|
||||
- name: notify
|
||||
image: curlimages/curl
|
||||
secrets: [ WEBHOOK_URL ]
|
||||
commands:
|
||||
- echo "Build completed for $CI_COMMIT_SHA" \
|
||||
- echo "Build completed: $CI_COMMIT_SHA" \
|
||||
| curl -X POST -H "Content-Type: text/plain" $WEBHOOK_URL
|
||||
|
||||
- name: push-to-github
|
||||
@@ -31,5 +33,5 @@ steps:
|
||||
when:
|
||||
status: [ success ]
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user