This commit is contained in:
Catherine
2025-09-25 02:06:35 +00:00
parent 80aa8e2901
commit d36bebfe4e
6 changed files with 12 additions and 11 deletions

View File

@@ -19,15 +19,15 @@ jobs:
apt-get -y install buildah ca-certificates nodejs
- name: Check out source code
uses: https://code.forgejo.org/actions/checkout@v5
- if: ${{ forge.repository == 'whitequark/git-pages' && 'true' || 'false' }}
- if: ${{ forge.repository == 'git-pages/git-pages' && 'true' || 'false' }}
name: Log into container registry
run: |
buildah login --authfile=/tmp/authfile.json \
-u whitequark -p ${{ secrets.PACKAGES_TOKEN }} codeberg.org
-u git-pages-bot -p ${{ secrets.PACKAGES_TOKEN }} codeberg.org
- name: Build container
uses: https://codeberg.org/actions/buildah-simple@main
with:
context: .
tag: "codeberg.org/whitequark/git-pages:latest"
push: ${{ forge.repository == 'whitequark/git-pages' && 'true' || 'false' }}
tag: "codeberg.org/git-pages/git-pages:latest"
push: ${{ forge.repository == 'git-pages/git-pages' && 'true' || 'false' }}
authfile: /tmp/authfile.json

View File

@@ -1,3 +1,4 @@
Copyright (C) git-pages contributors
Copyright (C) Catherine 'whitequark'
Permission to use, copy, modify, and/or distribute this software for

View File

@@ -26,7 +26,7 @@ These commands starts an HTTP server on `0.0.0.0:3000` and use the `data` direct
To publish a site, run the following commands:
```console
$ curl http://localhost:3000/ -X PUT --data https://codeberg.org/whitequark/git-pages.git
$ curl http://localhost:3000/ -X PUT --data https://codeberg.org/git-pages/git-pages.git
b70644b523c4aaf4efd206a588087a1d406cb047
```
@@ -43,7 +43,7 @@ To run _git-pages_ standalone and use the filesystem to store site data:
```console
$ docker run -u $(id -u):$(id -g)--mount type=bind,src=$(pwd)/data,dst=/app/data \
-p 3000:3000 \
codeberg.org/whitequark/git-pages:latest
codeberg.org/git-pages/git-pages:latest
```
To run _git-pages_ with Caddy and use an S3-compatible endpoint to store site data and TLS key material:
@@ -51,7 +51,7 @@ To run _git-pages_ with Caddy and use an S3-compatible endpoint to store site da
```console
$ docker run -e S3_ENDPOINT -e S3_REGION -e S3_ACCESS_KEY_ID -e S3_SECRET_ACCESS_KEY -e S3_BUCKET \
-e ACME_EMAIL -p 80:80 -p 443:443 \
codeberg.org/whitequark/git-pages:latest supervisord
codeberg.org/git-pages/git-pages:latest supervisord
```
See also the included [configuration](fly.toml) for [Fly.io](https://fly.io).
@@ -122,7 +122,7 @@ The S3 backend, intended for (relatively) high latency connections, caches both
Architecture (v1)
-----------------
*This was the original architecture and it is no longer used. Migration to v2 was last available in commit [7e9cd17b](https://codeberg.org/whitequark/git-pages/commit/7e9cd17b70717bea2fe240eb6a784cb206243690).*
*This was the original architecture and it is no longer used. Migration to v2 was last available in commit [7e9cd17b](https://codeberg.org/git-pages/git-pages/commit/7e9cd17b70717bea2fe240eb6a784cb206243690).*
Filesystem is used as the sole mechanism for state storage.

2
go.mod
View File

@@ -1,4 +1,4 @@
module whitequark.org/git-pages
module codeberg.org/git-pages/git-pages
go 1.25.0

View File

@@ -401,7 +401,7 @@ const file_schema_proto_rawDesc = "" +
"\n" +
"InlineFile\x10\x02\x12\x10\n" +
"\fExternalFile\x10\x03\x12\v\n" +
"\aSymlink\x10\x04B\x1fZ\x1dwhitequark.org/git-pages/mainb\beditionsp\xe8\a"
"\aSymlink\x10\x04B'Z%codeberg.org/git-pages/git-pages/mainb\beditionsp\xe8\a"
var (
file_schema_proto_rawDescOnce sync.Once

View File

@@ -1,6 +1,6 @@
edition = "2023";
option go_package = "whitequark.org/git-pages/main";
option go_package = "codeberg.org/git-pages/git-pages/main";
enum Type {
// Invalid entry.