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.
ci/woodpecker/push/woodpecker Pipeline was successful
Details
|
3 months ago | |
---|---|---|
.github | 3 months ago | |
config | 3 months ago | |
contrib | 11 months ago | |
docs | 3 months ago | |
migrations | 3 months ago | |
scripts | 3 months ago | |
src | 3 months ago | |
static/cache/img/svg | 4 months ago | |
templates | 3 months ago | |
tests/cases/contains-everything/toml | 4 months ago | |
utils/cache-bust | 3 months ago | |
.dockerignore | 3 months ago | |
.gitignore | 6 months ago | |
.woodpecker.yml | 3 months ago | |
Cargo.lock | 3 months ago | |
Cargo.toml | 3 months ago | |
Dockerfile | 3 months ago | |
LICENSE.md | 1 year ago | |
Makefile | 3 months ago | |
README.md | 3 months ago | |
build.rs | 4 months ago | |
package-lock.json | 6 months ago | |
package.json | 6 months ago | |
sqlx-data.json | 3 months ago |
README.md
Pages
Auto-deploy static websites from git repositories
[](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\" }"