Try tigger gitops pipeline
This commit is contained in:
parent
1654d2b3d2
commit
e64715eafc
@ -95,18 +95,20 @@ steps:
|
|||||||
git commit -m "backend: update tag to $TAG" || echo "No changes"
|
git commit -m "backend: update tag to $TAG" || echo "No changes"
|
||||||
git push origin HEAD
|
git push origin HEAD
|
||||||
|
|
||||||
trigger-gitops-pipeline:
|
trigger-gitops-via-push:
|
||||||
name: Trigger apps-gitops pipeline
|
name: Trigger apps-gitops via Git push
|
||||||
image: curlimages/curl
|
image: alpine/git
|
||||||
when:
|
|
||||||
branch: [ master, develop ]
|
|
||||||
event: [ push ]
|
|
||||||
environment:
|
environment:
|
||||||
WOODPECKER_API_TOKEN:
|
GIT_USERNAME:
|
||||||
from_secret: WOODPECKER_API_TOKEN
|
from_secret: GIT_USERNAME
|
||||||
commands:
|
GIT_TOKEN:
|
||||||
- |
|
from_secret: GIT_TOKEN
|
||||||
curl -X POST https://woodpecker.dvirlabs.com/api/repos/dvirlabs/apps-gitops/builds \
|
commands: |
|
||||||
-H "Authorization: Bearer $WOODPECKER_API_TOKEN" \
|
git config --global user.name "woodpecker-bot"
|
||||||
-H "Content-Type: application/json" \
|
git config --global user.email "ci@dvirlabs.com"
|
||||||
-d '{"branch": "master"}'
|
git clone "https://${GIT_USERNAME}:${GIT_TOKEN}@git.dvirlabs.com/dvirlabs/apps-gitops.git"
|
||||||
|
cd apps-gitops
|
||||||
|
echo "# trigger at $(date)" >> .trigger
|
||||||
|
git add .trigger
|
||||||
|
git commit -m "ci: trigger apps-gitops build" || echo "no changes"
|
||||||
|
git push origin HEAD
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user