Sign inSign up

matthewzygowicz/ghost-on-github-pages

By matthewzygowicz

•Updated about 6 years ago

https://github.com/goldsziggy/docker-ghost-on-github

Image
0

627

matthewzygowicz/ghost-on-github-pages repository overview

⁠Docker-Ghost-On-Github

This dockerfile will be used my server array to publish the local ghost site to Github Pages. This dockerfile essentially paraterizes the npm package ghost-static-site-generator which does the real heavy lifting.

⁠ARGS/ENV Variables

If building from source, you can set the build-args to the following for the image, otherwise simply set them as environment variables.

ARG/ENVDescription
GH_PATYour github personal-access-token so the script can push commits to your repo
GH_REPOYour github repo that will contain the static site
REMOTE_URLThe URL that the static site will be hosted from
GHOST_SERVER_URLThe URL of your local instance of GHOST
GIT_NAMEWhat name should the git-commit come from
GIT_EMAILwhat email the git commit should come from

⁠Sample build command

docker build --build-arg GH_PAT=abc123 --build-arg GH_REPO=github.com/goldsziggy/neighborlynook.git --build-arg GHOST_SERVER_URL="https://hidden.example.com" --build-arg GIT_EMAIL="[email protected]" --build-arg GIT_NAME="Matthew Zygwoicz" -t ghost-on-git .

⁠Sample Run Command

The following command will be used to actually run the script and push the updates to your static site. At bare minimum this should be set to a daily cron.

docker run -it ghost-on-git

Tag summary

Content type

Image

Digest

Size

364.5 MB

Last updated

about 6 years ago

docker pull matthewzygowicz/ghost-on-github-pages