This commit is contained in:
parent
e2d00dafab
commit
a01c098075
@ -20,7 +20,8 @@ steps:
|
||||
REGISTRY_PWD:
|
||||
from_secret: registry_pwd
|
||||
commands:
|
||||
- apk add git curl
|
||||
- apk add git curl jq
|
||||
- echo "Checking for new server version"
|
||||
# collect info from upstream repository
|
||||
- git clone https://github.com/drone/drone.git
|
||||
- cd drone
|
||||
@ -34,7 +35,7 @@ steps:
|
||||
# compare and trigger CI if necessary
|
||||
- |
|
||||
if [[ $COMMIT_HASH != $IMAGE_COMMIT_HASH ]]; then
|
||||
echo 'Updates available, triggering build pipeline.'
|
||||
echo 'Updates available, triggering server build.'
|
||||
curl -X POST -H "Authorization: Bearer $DRONE_API_TOKEN" \
|
||||
https://drone.jfmonty2.com/api/repos/jfmonty2/drone/builds/$DRONE_BUILD_NUMBER/promote?target=server-build
|
||||
else
|
||||
@ -50,7 +51,7 @@ volumes:
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: main
|
||||
name: server
|
||||
|
||||
trigger:
|
||||
event:
|
||||
|
Loading…
x
Reference in New Issue
Block a user