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.
 
 
 
 
 
 
Go to file
Aravinth Manivannan b2eeb5b9fd
ci/woodpecker/push/woodpecker Pipeline was successful Details
chore: lints
3 months ago
.github feat: CI: configure and run conductor instance while testing 3 months ago
config chore: rename pages -> librepages 3 months ago
contrib feat: link to enough community ansible playbook 11 months ago
docs chore: rename pages -> librepages 3 months ago
migrations feat: s/gitea/forgejo/ 3 months ago
scripts fix: CI: build release profile bin and publish 3 months ago
src chore: lints 3 months ago
static/cache/img/svg feat: add show and hide icons 4 months ago
templates feat: s/gitea/forgejo/ 3 months ago
tests/cases/contains-everything/toml feat: read configuration from repositories 4 months ago
utils/cache-bust fix: checkin sqlx offline compilation data 3 months ago
.dockerignore feat: bin publisher docker img. Get bin from realaravinth/librepages 3 months ago
.gitignore feat: setup sass compilation 6 months ago
.woodpecker.yml fix: CI: build release profile bin and publish 3 months ago
Cargo.lock feat: install gitea webhook security deps and load gitea webhook module 3 months ago
Cargo.toml feat: install gitea webhook security deps and load gitea webhook module 3 months ago
Dockerfile chore: rename pages -> librepages 3 months ago
LICENSE.md init 1 year ago
Makefile fix: bulid with DATABASE_URL unset and apply migrations 3 months ago
README.md feat: add CI build status badge 3 months ago
build.rs chore: apply clippy lints 4 months ago
package-lock.json feat: setup sass compilation 6 months ago
package.json feat: setup sass compilation 6 months ago
sqlx-data.json feat: s/gitea/forgejo/ 3 months ago

README.md

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

  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\"
    }"