Pull your hexo project Git code into a data volume and trigger automatic packaging via Webhook.
1.9K
Not maintained anymore, please visit new Docker. Here
Pull your hexo project Git code into a data volume and trigger automatic packaging via Webhook.
This image is based on Alpine Linux image, which is a 163MB image.
Download size of this image is:
Docker hub image: funnyzak/hexo-webhook
Docker Pull Command: docker pull funnyzak/hexo-webhook
Visit Url: http://hostname:80/
Webhook Url: http://hostname:80/hooks/git-webhook?token=HOOK_TOKEN
The following flags are a list of all the currently supported options that can be changed by passing in the variables to docker with the -e flag.
StartUp|BeforePull|AfterPull|AfterPackageBeforePull|AfterPackagessh-keygen -t rsa -b 4096 -C "[email protected]" -N "" -f ./id_rsa
version: '3'
services:
hexo_blog:
image: funnyzak/hexo-webhook
privileged: true
container_name: hexo_blog
working_dir: /app/hook
logging:
driver: 'json-file'
options:
max-size: '1g'
tty: true
environment:
- TZ=Asia/Shanghai
- LANG=C.UTF-8
- USE_HOOK=1
- [email protected]:username/repo_name.git
- GIT_BRANCH=master
- GIT_EMAIL=youremail
- GIT_NAME=yourname
- AFTER_PACKAGE_COMMANDS=echo "elapsed time: $(cat /tmp/ELAPSED_TIME_LABEL)"
- APP_NAME=vuepress_app
- NOTIFY_ACTION_LABEL=已启动|准备拉取代码|代码已拉取|打包部署完成
- NOTIFY_ACTION_LIST=StartUp|BeforePull|AfterPull|AfterPackage
- NOTIFY_URL_LIST=https://request.worktile.com/asdfsfwe
- IFTTT_HOOK_URL_LIST=https://maker.ifttt.com/trigger/event_name/with/keyhelloworld
- DINGTALK_TOKEN_LIST=sldfj2hr923rsf2938u4sdfsf|lsdf203sjdf
restart: on-failure
ports:
- 80:80
volumes:
- ./target:/app/target
- ./code:/app/code
- ./ssh:/root/.ssh
Please configure according to the actual deployment path and port.
Content type
Image
Digest
Size
423.3 MB
Last updated
over 6 years ago
docker pull funnyzak/hexo-webhook