fix ci: replace drone-git-push plugin with git commands
appleboy/drone-git-push treats 'path' as a chdir directory, not a file to commit. Use alpine/git with explicit git add/commit/push instead.
This commit is contained in:
@@ -46,19 +46,20 @@ steps:
|
|||||||
- test
|
- test
|
||||||
|
|
||||||
- name: commit-badge
|
- name: commit-badge
|
||||||
image: appleboy/drone-git-push
|
image: alpine/git
|
||||||
failure: ignore
|
failure: ignore
|
||||||
settings:
|
environment:
|
||||||
remote: http://gitea:3000/homelab/stack.git
|
REGISTRY_USER:
|
||||||
branch: main
|
|
||||||
author_name: woodpecker-ci
|
|
||||||
author_email: ci@fhirworx.io
|
|
||||||
commit_message: "update coverage badge [skip ci]"
|
|
||||||
path: coverage.svg
|
|
||||||
username:
|
|
||||||
from_secret: registry_user
|
from_secret: registry_user
|
||||||
password:
|
REGISTRY_PASS:
|
||||||
from_secret: registry_pass
|
from_secret: registry_pass
|
||||||
|
commands:
|
||||||
|
- git config user.name woodpecker-ci
|
||||||
|
- git config user.email ci@fhirworx.io
|
||||||
|
- git add coverage.svg
|
||||||
|
- git diff --cached --quiet && echo "no change" && exit 0
|
||||||
|
- git commit -m "update coverage badge [skip ci]"
|
||||||
|
- git push http://$REGISTRY_USER:$REGISTRY_PASS@gitea:3000/homelab/stack.git HEAD:main
|
||||||
when:
|
when:
|
||||||
- branch: main
|
- branch: main
|
||||||
event: push
|
event: push
|
||||||
|
|||||||
Reference in New Issue
Block a user