Add watchtower hooks
This commit is contained in:
parent
96d11ef07f
commit
648661877a
|
@ -7,3 +7,4 @@ public/
|
|||
db/dev.db/
|
||||
dist
|
||||
coverage/
|
||||
watchtower-hook.json
|
|
@ -1,5 +1,10 @@
|
|||
FROM node:12-alpine
|
||||
|
||||
LABEL com.centurylinklabs.watchtower.lifecycle.pre-check="scripts/watchtower-hooks/pre-check.sh"
|
||||
LABEL com.centurylinklabs.watchtower.lifecycle.pre-update="scripts/watchtower-hooks/pre-update.sh"
|
||||
LABEL com.centurylinklabs.watchtower.lifecycle.post-update="scripts/watchtower-hooks/post-update.sh"
|
||||
LABEL com.centurylinklabs.watchtower.lifecycle.post-check="scripts/watchtower-hooks/post-check.sh"
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
ENV PORT=4001
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
echo '{ "current-hook" : "post-check" }' > 'watchtower-hook.json'
|
|
@ -0,0 +1 @@
|
|||
echo '{ "current-hook" : "post-update" }' > 'watchtower-hook.json'
|
|
@ -0,0 +1 @@
|
|||
echo '{ "current-hook" : "pre-check" }' > 'watchtower-hook.json'
|
|
@ -0,0 +1 @@
|
|||
echo '{ "current-hook" : "pre-update" }' > 'watchtower-hook.json'
|
|
@ -1,2 +1,3 @@
|
|||
node_modules/
|
||||
.env
|
||||
watchtower-hook.json
|
|
@ -1,5 +1,10 @@
|
|||
FROM node:12-alpine
|
||||
|
||||
LABEL com.centurylinklabs.watchtower.lifecycle.pre-check="scripts/watchtower-hooks/pre-check.sh"
|
||||
LABEL com.centurylinklabs.watchtower.lifecycle.pre-update="scripts/watchtower-hooks/pre-update.sh"
|
||||
LABEL com.centurylinklabs.watchtower.lifecycle.post-update="scripts/watchtower-hooks/post-update.sh"
|
||||
LABEL com.centurylinklabs.watchtower.lifecycle.post-check="scripts/watchtower-hooks/post-check.sh"
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# copy files and install dependencies
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
echo '{ "current-hook" : "post-check" }' > 'watchtower-hook.json'
|
|
@ -0,0 +1 @@
|
|||
echo '{ "current-hook" : "post-update" }' > 'watchtower-hook.json'
|
|
@ -0,0 +1 @@
|
|||
echo '{ "current-hook" : "pre-check" }' > 'watchtower-hook.json'
|
|
@ -0,0 +1 @@
|
|||
echo '{ "current-hook" : "pre-update" }' > 'watchtower-hook.json'
|
Loading…
Reference in New Issue