Docker Image that does automated hexo deployments when started. The image publishes the contents of a given git-url once when it is started.
Usage scenarios:
Features:
The configuration options are:
GIT_URL: must point to your git repository containing your hexo siteSECRET: The contents of this variable will replace all occurences of the placeholder @SECRET@ in your _config.yml. The variable is optional, and only needed in case you do not want to commit your deployment configuration including the password. An example for a deployment configuration that makes use of SECRET is shown below/root/.ssh/id_rsa/repo directory persistant by using a docker named volume. This is optional. If the repo is not persistent, the image will perform a new git clone every time it is started.Example for using deployment configuration without the need to commit your password to git.
...
deploy:
type: sftp
host: my-hosting.com
user: hexo
pass: @SECRET@
...
docker-compose.ymlversion: '3.5'
services:
hexo-deployer:
container_name: hexodeployer
image: goroot/hexodeployer
volumes:
- /home/user/.ssh/id_rsa:/root/.ssh/id_rsa
- repo:/repo
environment:
- SECRET=password
- GIT_URL=ssh://[email protected]:22/mysite.git
volumes:
repo:
Content type
Image
Digest
Size
61.8 MB
Last updated
over 8 years ago
docker pull kwave/hexo-deployer