-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnotify.rancher.sh
19 lines (19 loc) · 1.22 KB
/
notify.rancher.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env bash
#
# Notify Rancher that images were changed.
#
sudo docker run cdrx/rancher-gitlab-deploy /bin/sh -c " \
upgrade \
--service web \
--rancher-url $RANCHER_URL \
--environment $RANCHER_ENVIRONMENT \
--stack $RANCHER_STACK \
--rancher-key $RANCHER_ACCESS_KEY \
--rancher-secret $RANCHER_SECRET_KEY; \
upgrade \
--service nginx \
--rancher-url $RANCHER_URL \
--environment $RANCHER_ENVIRONMENT \
--stack $RANCHER_STACK \
--rancher-key $RANCHER_ACCESS_KEY \
--rancher-secret $RANCHER_SECRET_KEY"