You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Aravinth Manivannan 5978d178bc
fix: pages->librepages
1 month ago
.github fix: pages->librepages 1 month ago
config chore: update deps and fix typo 5 months ago
contrib feat: link to enough community ansible playbook 5 months ago
docs feat: add bare metal deployment instructions 6 months ago
scripts fix: ibn name 1 month ago
src fix: page update with merge analysis 1 month ago
.dockerignore package docker container 11 months ago
.gitignore fix: create user if it doesn't exist 1 month ago
Cargo.lock feat: handle errors in deploy endpoint 5 months ago
Cargo.toml chore: load app settings via app ctx and do away with global static loader 5 months ago
Dockerfile chore: update docker rust base img 7 months ago init 11 months ago
Makefile feat: tag docker img with version 0.1.0 6 months ago package docker container 11 months ago generate build metadata 11 months ago


Auto-deploy static websites from git repositories

Build dependency status codecov


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 :)


  1. 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 = "", path ="/var/www/pages/realaravinth", secret = "mytopsecretsuperlongpassword123" },
  2. If pages is deployed at and you wish to deploy changes from gh-pages branch, you can do so with the following command:

     curl -v --location --request POST '' \
    --header 'Content-Type: application/json' \
    --data-raw "{
    	\"secret\": \"$token\",
    	\"branch\": \"gh-pages\"