Merge branch 'main' into feature/rename-gitea-to-forgejo

This commit is contained in:
crapStone 2024-05-26 14:34:31 +00:00
commit f8a10d1b30
3 changed files with 26 additions and 6 deletions

View file

@ -114,6 +114,23 @@ steps:
- event: ['push']
branch: ${CI_REPO_DEFAULT_BRANCH}
'Publish PR image':
image: woodpeckerci/plugin-docker-buildx:3.2.1
depends_on: test
settings:
registry: codeberg.org
dockerfile: Dockerfile
platforms: linux/amd64
repo: codeberg.org/codeberg/pages-server
tags: next
username:
from_secret: bot_user
password:
from_secret: bot_token
when:
evaluate: 'CI_COMMIT_PULL_REQUEST_LABELS contains "build_pr_image"'
event: pull_request
docker-tag:
depends_on: vendor
image: woodpeckerci/plugin-docker-buildx:3.2.1

View file

@ -8,7 +8,7 @@ when:
steps:
lint:
depends_on: []
image: golangci/golangci-lint:v1.58.1
image: golangci/golangci-lint:v1.58.2
commands:
- go version
- go install mvdan.cc/gofumpt@latest
@ -28,7 +28,7 @@ steps:
branch: renovate/*
yamllint:
image: pipelinecomponents/yamllint:0.31.1
image: pipelinecomponents/yamllint:0.31.2
depends_on: []
commands:
- yamllint .

View file

@ -64,6 +64,9 @@ but forward the requests on the IP level to the Pages Server.
You can check out a proof of concept in the `examples/haproxy-sni` folder,
and especially have a look at [this section of the haproxy.cfg](https://codeberg.org/Codeberg/pages-server/src/branch/main/examples/haproxy-sni/haproxy.cfg#L38).
If you want to test a change, you can open a PR and ask for the label `build_pr_image` to be added.
This will trigger a build of the PR which will build a docker image to be used for testing.
### Environment Variables
- `HOST` & `PORT` (default: `[::]` & `443`): listen address.