Go to file
Aravinth Manivannan 3819c93908
chore: update docker base img
2022-03-15 15:29:35 +05:30
.github feat: init service provider branch 2022-02-10 14:10:16 +05:30
config feat: logging level configuration 2022-02-10 19:01:24 +05:30
scripts package docker container 2021-10-29 20:38:56 +05:30
src feat: logging level configuration 2022-02-10 19:01:24 +05:30
.dockerignore package docker container 2021-10-29 20:38:56 +05:30
.gitignore init 2021-10-29 20:21:46 +05:30
Cargo.lock chore: update deps 2022-03-15 15:26:07 +05:30
Cargo.toml chore: update deps 2022-03-15 15:26:07 +05:30
Dockerfile chore: update docker base img 2022-03-15 15:29:35 +05:30
LICENSE.md init 2021-10-29 20:21:46 +05:30
Makefile setup make 2021-10-29 20:24:20 +05:30
README.md feat: init service provider branch 2022-02-10 14:10:16 +05:30
build.rs generate build metadata 2021-10-29 20:22:44 +05:30

README.md

Pages

Auto-deploy static websites from git repositories

service-provider branch contains changes and features that are more suited for use by folks that host large number of websites like GitHub Pages, etc.

Build dependency status codecov

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

  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 = "https://github.com/realaravinth/realaravinth/", path ="/var/www/pages/realaravinth", secret = "mytopsecretsuperlongpassword123" },
    ]
    
  2. If pages is deployed at pages.example.com and you wish to deploy changes from gh-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\"
    }"