No description
Aravinth Manivannan
4ee3e5d85b
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Reviewed-on: #21 |
||
---|---|---|
.github | ||
config | ||
contrib | ||
docs | ||
migrations | ||
scripts | ||
src | ||
static/cache/img/svg | ||
templates | ||
tests/cases/contains-everything/toml | ||
utils/cache-bust | ||
.dockerignore | ||
.gitignore | ||
.woodpecker.yml | ||
build.rs | ||
Cargo.lock | ||
Cargo.toml | ||
Dockerfile | ||
LICENSE.md | ||
Makefile | ||
package-lock.json | ||
package.json | ||
README.md | ||
renovate.json | ||
sqlx-data.json |
Pages
Auto-deploy static websites from git repositories
[![status-badge](https://ci.batsense.net/api/badges/LibrePages/librepages/status.svg)](https://ci.batsense.net/LibrePages/librepages)Why?
SSHing into a server and performing a git pull
is boring. I couldn't
find any free(as in freedom) software for automating static website
deploys like GitHub Pages or Netlify.
This is very minimal, all it does is a git fetch $branch
but it works
for me :)
Usage
-
All configuration is done through ./config/default.toml(can be moved to
/etc/static-pages/config.toml
). Too add a website, make a similar entry:pages = [ { branch = "gh-pages", repo = "https://github.com/realaravinth/realaravinth/", path ="/var/www/pages/realaravinth", secret = "mytopsecretsuperlongpassword123" }, ]
-
If
pages
is deployed atpages.example.com
and you wish to deploy changes fromgh-pages
branch, you can do so with the following command:curl -v --location --request POST 'https://pages.example.com/api/v1/update' \ --header 'Content-Type: application/json' \ --data-raw "{ \"secret\": \"$token\", \"branch\": \"gh-pages\" }"