rename promotion target to staging
This commit is contained in:
parent
a01c098075
commit
5555aa4f0c
@ -37,7 +37,7 @@ steps:
|
|||||||
if [[ $COMMIT_HASH != $IMAGE_COMMIT_HASH ]]; then
|
if [[ $COMMIT_HASH != $IMAGE_COMMIT_HASH ]]; then
|
||||||
echo 'Updates available, triggering server build.'
|
echo 'Updates available, triggering server build.'
|
||||||
curl -X POST -H "Authorization: Bearer $DRONE_API_TOKEN" \
|
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
|
https://drone.jfmonty2.com/api/repos/jfmonty2/drone/builds/$DRONE_BUILD_NUMBER/promote?target=staging
|
||||||
else
|
else
|
||||||
echo 'Image is already up to date.'
|
echo 'Image is already up to date.'
|
||||||
fi
|
fi
|
||||||
@ -57,7 +57,7 @@ trigger:
|
|||||||
event:
|
event:
|
||||||
- promote
|
- promote
|
||||||
target:
|
target:
|
||||||
- server-build
|
- staging
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: prepare
|
- name: prepare
|
||||||
|
Loading…
x
Reference in New Issue
Block a user