Trigger apps-gitops pipeline
This commit is contained in:
parent
8cf70319e6
commit
1654d2b3d2
@ -94,3 +94,19 @@ steps:
|
||||
git add manifests/${CI_REPO_NAME}/values.yaml
|
||||
git commit -m "backend: update tag to $TAG" || echo "No changes"
|
||||
git push origin HEAD
|
||||
|
||||
trigger-gitops-pipeline:
|
||||
name: Trigger apps-gitops pipeline
|
||||
image: curlimages/curl
|
||||
when:
|
||||
branch: [ master, develop ]
|
||||
event: [ push ]
|
||||
environment:
|
||||
WOODPECKER_API_TOKEN:
|
||||
from_secret: WOODPECKER_API_TOKEN
|
||||
commands:
|
||||
- |
|
||||
curl -X POST https://woodpecker.dvirlabs.com/api/repos/dvirlabs/apps-gitops/builds \
|
||||
-H "Authorization: Bearer $WOODPECKER_API_TOKEN" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"branch": "master"}'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user