Commit Graph

268 Commits

Author SHA1 Message Date
Gnarwhal
23a8e83e80 Allow serving custom error page (#393)
It might be useful for those self-hosting a Codeberg Pages instance to be able to serve a different error page than the one embedded with go:embed

Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/393
Co-authored-by: Gnarwhal <git.aspect893@passmail.net>
Co-committed-by: Gnarwhal <git.aspect893@passmail.net>
2024-11-17 16:28:52 +00:00
Bastian Greshake Tzovaras
bef866faae Improve error message when pages don't work (#398)
On Matrix there was a recent discussion about the quality of the error page that _Codeberg Pages_ displays. Pixelcode had posted this relevant points:

> Currently, the message reads as if written for the website's owner. I think it should be rephrased so that visitors who encounter the error understand that:
> 1. This page is an error message, not the actual website. (e.g. Error 424 instead of just 424)
> 2. The website is hosted on Codeberg Pages, not on a server controlled by the owner.
> 3. There's perhaps a configuration error or an internal server issue.
> 4. It might take a little until the website is up again.

 In particular the point about the "dual audience" of _Codeberg Pages_ user/website owner and website visitor seems important, to make sure that both audiences understand that there's an error.
 Also the error can be due to _Codeberg Pages_ being down or due to the user misconfiguring their page.

 I've taken a first stab at trying to cover those 4 points, but of course the exact improvements are up for debate, but thought it would be easiest to provide a concrete suggestion to get us started!

Co-authored-by: crapStone <me@crapstone.dev>
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/398
Co-authored-by: Bastian Greshake Tzovaras <bgreshake@googlemail.com>
Co-committed-by: Bastian Greshake Tzovaras <bgreshake@googlemail.com>
2024-11-05 21:01:13 +00:00
Dependency bot
532e1af2fc chore(deps): update woodpeckerci/plugin-docker-buildx docker tag to v5 (#392)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [woodpeckerci/plugin-docker-buildx](https://codeberg.org/woodpecker-plugins/docker-buildx) ([source](https://codeberg.org/woodpecker-plugins/docker-buildx.git)) | major | `4.2.0` -> `5.0.0` |

---

### Release Notes

<details>
<summary>woodpecker-plugins/docker-buildx (woodpeckerci/plugin-docker-buildx)</summary>

### [`v5.0.0`](https://codeberg.org/woodpecker-plugins/docker-buildx/blob/HEAD/CHANGELOG.md#500---2024-10-09)

[Compare Source](https://codeberg.org/woodpecker-plugins/docker-buildx/compare/v4.2.0...v5.0.0)

##### ❤️ Thanks to all contributors! ❤️

[@&#8203;6543](https://github.com/6543), [@&#8203;flyingscorpio](https://github.com/flyingscorpio), [@&#8203;pat-s](https://github.com/pat-s), [@&#8203;woodpecker-bot](https://github.com/woodpecker-bot)

##### 💥 Breaking changes

-   Hide insecure configuration options behind insecure tag \[[#&#8203;194](https://codeberg.org/woodpecker-plugins/docker-buildx/pulls/194)]
-   chore(deps): update docker docker tag to v27 \[[#&#8203;170](https://codeberg.org/woodpecker-plugins/docker-buildx/pulls/170)]

#####  Features

-   Add `sbom` option \[[#&#8203;187](https://codeberg.org/woodpecker-plugins/docker-buildx/pulls/187)]

##### 📈 Enhancement

-   Optimize container layers \[[#&#8203;191](https://codeberg.org/woodpecker-plugins/docker-buildx/pulls/191)]
-   Dont let proxy config overwrite dedicated buildkit_driveropt proxy options if set \[[#&#8203;175](https://codeberg.org/woodpecker-plugins/docker-buildx/pulls/175)]

##### 🐛 Bug Fixes

-   Quote `no_proxy` \[[#&#8203;185](https://codeberg.org/woodpecker-plugins/docker-buildx/pulls/185)]
-   Update drone-plugin-lib to handle nil pointer \[[#&#8203;178](https://codeberg.org/woodpecker-plugins/docker-buildx/pulls/178)]

##### 📚 Documentation

-   update pipeline config example \[[#&#8203;180](https://codeberg.org/woodpecker-plugins/docker-buildx/pulls/180)]

##### 📦️ Dependency

-   chore(deps): update docker docker tag to v27.2.1 \[[#&#8203;183](https://codeberg.org/woodpecker-plugins/docker-buildx/pulls/183)]
-   fix(deps): update github.com/urfave/cli/v3 digest to [`31c5c84`](https://github.com/woodpecker-plugins/docker-buildx/commit/31c5c84) \[[#&#8203;182](https://codeberg.org/woodpecker-plugins/docker-buildx/pulls/182)]
-   Update to github.com/urfave/cli/v3 \[[#&#8203;173](https://codeberg.org/woodpecker-plugins/docker-buildx/pulls/173)]

##### Misc

-   dont ignore changelog ([f3f8166](f3f8166af3))
-   Add nix flake \[[#&#8203;192](https://codeberg.org/woodpecker-plugins/docker-buildx/pulls/192)]
-   chore(deps): update dependency go to v1.23.2 ([9c4cea3](9c4cea3ccc))
-   fix(deps): update github.com/urfave/cli/v3 digest to [`20ef97b`](https://github.com/woodpecker-plugins/docker-buildx/commit/20ef97b) ([b6a6f1c](b6a6f1c772))
-   Add release config for release-helper plugin \[[#&#8203;190](https://codeberg.org/woodpecker-plugins/docker-buildx/pulls/190)]
-   Use ready-release-go plugin \[[#&#8203;189](https://codeberg.org/woodpecker-plugins/docker-buildx/pulls/189)]
-   add-remote-builders \[[#&#8203;179](https://codeberg.org/woodpecker-plugins/docker-buildx/pulls/179)]
-   chore(deps): update docker docker tag to v27.3.1 ([4fedea4](4fedea4855))
-   chore(deps): update docker/buildx-bin docker tag to v0.17.1 ([b807eda](b807edaa48))
-   chore(deps): update davidanson/markdownlint-cli2 docker tag to v0.14.0 ([8435819](8435819971))
-   chore(deps): update dependency go to v1.23.1 ([3ee6b8b](3ee6b8bb9d))
-   chore(deps): update docker docker tag to v27.2.0 ([c661b7a](c661b7a48d))
-   fix(deps): update github.com/urfave/cli/v3 digest to [`3d76e1b`](https://github.com/woodpecker-plugins/docker-buildx/commit/3d76e1b) ([ba44638](ba44638dda))
-   fix(deps): update module github.com/pelletier/go-toml/v2 to v2.2.3 ([0e1e881](0e1e8818e7))
-   fix(deps): update github.com/urfave/cli/v3 digest to [`5386081`](https://github.com/woodpecker-plugins/docker-buildx/commit/5386081) ([cf7d19c](cf7d19cbb1))
-   fix(deps): update module honnef.co/go/tools to v0.5.1 ([23b0f61](23b0f61255))
-   chore(deps): update golang docker tag to v1.23 ([b98307b](b98307bb3e))
-   fix(deps): update github.com/urfave/cli/v3 digest to [`3110c0e`](https://github.com/woodpecker-plugins/docker-buildx/commit/3110c0e) ([13aa887](13aa8879a2))
-   chore(deps): update docker docker tag to v27.1.2 ([fe28f12](fe28f12be1))
-   chore(deps): update woodpeckerci/plugin-release docker tag to v0.2.1 ([ea32257](ea32257d1d))
-   fix(deps): update module github.com/aws/aws-sdk-go to v1.55.5 ([af71dcd](af71dcdbde))
-   fix(deps): update module github.com/aws/aws-sdk-go to v1.55.3 ([1d5b8fd](1d5b8fdc17))
-   chore(deps): update docker/buildx-bin docker tag to v0.16.2 ([c671088](c671088766))
-   chore(deps): update woodpeckerci/plugin-docker-buildx docker tag to v4.2.0 ([642f2b3](642f2b36d7))
-   chore(deps): update docker/buildx-bin docker tag to v0.16.1 ([f8b58f5](f8b58f573b))
-   fix(deps): update github.com/urfave/cli/v3 digest to [`127cf54`](https://github.com/woodpecker-plugins/docker-buildx/commit/127cf54) ([03cd73f](03cd73f068))
-   update version parse lib ([42395c5](42395c51ec))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "every weekend" (UTC), Automerge - "before 4am" (UTC).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->

Co-authored-by: woodpecker-bot <woodpecker-bot@obermui.de>
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/392
Co-authored-by: Dependency bot <renovate-bot@noreply.codeberg.org>
Co-committed-by: Dependency bot <renovate-bot@noreply.codeberg.org>
2024-11-05 18:52:45 +00:00
Julien Malka
bb7cfbb37c feat: add proxy protocol support (#394)
This can be useful when the pages-server is running behing a proxy, to
keep track of the originating ip.

Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/394
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: Julien Malka <julien@malka.sh>
Co-committed-by: Julien Malka <julien@malka.sh>
2024-10-29 17:56:00 +00:00
Dependency bot
168bc9047b fix(deps): update golang.org/x/exp digest to f66d83c (#396) 2024-10-15 00:51:32 +00:00
Dependency bot
831ce3d913 fix(deps): update golang.org/x/exp digest to 225e2ab (#391) 2024-10-07 00:38:22 +00:00
Dependency bot
d6f0ec39fc fix(deps): update golang.org/x/exp digest to 0cdaa3a (#377) 2024-09-30 00:26:29 +00:00
crapStone
2f8bd38f59 pin golang-just image (#390)
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/390
Co-authored-by: crapStone <me@crapstone.dev>
Co-committed-by: crapStone <me@crapstone.dev>
2024-09-29 21:17:15 +00:00
ltdk
5b120f0488 Implement static serving of compressed files (#387)
This provides an option for #223 without fully resolving it. (I think.)

Essentially, it acts very similar to the `gzip_static` and similar options for nginx, where it will check for the existence of pre-compressed files and serve those instead if the client allows it. I couldn't find a pre-existing way to actually parse the Accept-Encoding header properly (admittedly didn't look very hard) and just implemented one on my own that should be fine.

This should hopefully not have the same DOS vulnerabilities as #302, since it relies on the existing caching system. Compressed versions of files will be cached just like any other files, and that includes cache for missing files as well.

The compressed files will also be accessible directly, and this won't automatically decompress them. So, if you have a `tar.gz` file that you access directly, it will still be downloaded as the gzipped version, although you will now gain the option to download the `.tar` directly and decompress it in transit. (Which doesn't affect the server at all, just the client's way of interpreting it.)

----

One key thing this change also adds is a short-circuit when accessing directories: these always return 404 via the API, although they'd try the cache anyway and go through that route, which was kind of slow. Adding in the additional encodings, it's going to try for .gz, .br, and .zst files in the worst case as well, which feels wrong. So, instead, it just always falls back to the index-check behaviour if the path ends in a slash or is empty. (Which is implicitly just a slash.)

----

For testing, I set up this repo: https://codeberg.org/clarfonthey/testrepo

I ended up realising that LFS wasn't supported by default with `just dev`, so, it ended up working until I made sure the files on the repo *didn't* use LFS.

Assuming you've run `just dev`, you can go directly to this page in the browser here: https://clarfonthey.localhost.mock.directory:4430/testrepo/
And also you can try a few cURL commands:

```shell
curl https://clarfonthey.localhost.mock.directory:4430/testrepo/ --verbose --insecure
curl -H 'Accept-Encoding: gz' https://clarfonthey.localhost.mock.directory:4430/testrepo/ --verbose --insecure | gunzip -
curl -H 'Accept-Encoding: br' https://clarfonthey.localhost.mock.directory:4430/testrepo/ --verbose --insecure | brotli --decompress -
curl -H 'Accept-Encoding: zst' https://clarfonthey.localhost.mock.directory:4430/testrepo/ --verbose --insecure | zstd --decompress -
```

Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/387
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: ltdk <usr@ltdk.xyz>
Co-committed-by: ltdk <usr@ltdk.xyz>
2024-09-29 21:00:54 +00:00
Dependency bot
e5320e1972 chore(deps): update pipelinecomponents/yamllint docker tag to v0.32.1 (#389)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [pipelinecomponents/yamllint](https://gitlab.com/pipeline-components/yamllint) | minor | `0.31.3` -> `0.32.1` |

---

### Release Notes

<details>
<summary>pipeline-components/yamllint (pipelinecomponents/yamllint)</summary>

### [`v0.32.1`](https://gitlab.com/pipeline-components/yamllint/compare/v0.32.0...v0.32.1)

[Compare Source](https://gitlab.com/pipeline-components/yamllint/compare/v0.32.0...v0.32.1)

### [`v0.32.0`](https://gitlab.com/pipeline-components/yamllint/compare/v0.31.3...v0.32.0)

[Compare Source](https://gitlab.com/pipeline-components/yamllint/compare/v0.31.3...v0.32.0)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "every weekend" (UTC), Automerge - "before 4am" (UTC).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->

Co-authored-by: woodpecker-bot <woodpecker-bot@obermui.de>
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/389
Co-authored-by: Dependency bot <renovate-bot@noreply.codeberg.org>
Co-committed-by: Dependency bot <renovate-bot@noreply.codeberg.org>
2024-09-29 20:50:14 +00:00
Dependency bot
549377aa01 chore(deps): update docker.io/woodpeckerci/plugin-prettier docker tag to v0.2.0 (#385)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [docker.io/woodpeckerci/plugin-prettier](https://github.com/woodpecker-ci/plugin-prettier) | minor | `0.1.0` -> `0.2.0` |

---

### Release Notes

<details>
<summary>woodpecker-ci/plugin-prettier (docker.io/woodpeckerci/plugin-prettier)</summary>

### [`v0.2.0`](https://github.com/woodpecker-ci/plugin-prettier/blob/HEAD/CHANGELOG.md#020---2024-08-26)

[Compare Source](https://github.com/woodpecker-ci/plugin-prettier/compare/0.1.0...0.2.0)

##### ❤️ Thanks to all contributors! ❤️

[@&#8203;6543](https://github.com/6543), [@&#8203;qwerty287](https://github.com/qwerty287)

##### 📈 Enhancement

-   Allow to read version from lockfile \[[#&#8203;20](https://github.com/woodpecker-ci/plugin-prettier/pull/20)]

##### Misc

-   Update pipeline conf \[[#&#8203;41](https://github.com/woodpecker-ci/plugin-prettier/pull/41)]
-   \[pre-commit.ci] pre-commit autoupdate \[[#&#8203;40](https://github.com/woodpecker-ci/plugin-prettier/pull/40)]
-   Update woodpeckerci/plugin-ready-release-go Docker tag to v1.2.0 \[[#&#8203;39](https://github.com/woodpecker-ci/plugin-prettier/pull/39)]
-   Update woodpeckerci/plugin-docker-buildx Docker tag to v4.2.0 \[[#&#8203;38](https://github.com/woodpecker-ci/plugin-prettier/pull/38)]
-   Update woodpeckerci/plugin-docker-buildx Docker tag to v4.1.0 \[[#&#8203;37](https://github.com/woodpecker-ci/plugin-prettier/pull/37)]
-   Update pre-commit hook igorshubovych/markdownlint-cli to v0.41.0 \[[#&#8203;34](https://github.com/woodpecker-ci/plugin-prettier/pull/34)]
-   Update woodpeckerci/plugin-ready-release-go Docker tag to v1.1.2 \[[#&#8203;33](https://github.com/woodpecker-ci/plugin-prettier/pull/33)]
-   Update woodpeckerci/plugin-docker-buildx Docker tag to v4 \[[#&#8203;32](https://github.com/woodpecker-ci/plugin-prettier/pull/32)]
-   Update pre-commit hook igorshubovych/markdownlint-cli to v0.40.0 \[[#&#8203;30](https://github.com/woodpecker-ci/plugin-prettier/pull/30)]
-   Update woodpeckerci/plugin-ready-release-go Docker tag to v1.1.1 \[[#&#8203;29](https://github.com/woodpecker-ci/plugin-prettier/pull/29)]
-   Update pre-commit hook pre-commit/pre-commit-hooks to v4.6.0 \[[#&#8203;28](https://github.com/woodpecker-ci/plugin-prettier/pull/28)]
-   Update woodpeckerci/plugin-docker-buildx Docker tag to v3.2.1 \[[#&#8203;27](https://github.com/woodpecker-ci/plugin-prettier/pull/27)]
-   Update woodpeckerci/plugin-docker-buildx Docker tag to v3.2.0 \[[#&#8203;26](https://github.com/woodpecker-ci/plugin-prettier/pull/26)]
-   Update woodpeckerci/plugin-docker-buildx Docker tag to v3.1.0 \[[#&#8203;25](https://github.com/woodpecker-ci/plugin-prettier/pull/25)]
-   \[pre-commit.ci] pre-commit autoupdate \[[#&#8203;24](https://github.com/woodpecker-ci/plugin-prettier/pull/24)]
-   Update woodpeckerci/plugin-docker-buildx Docker tag to v3.0.1 \[[#&#8203;23](https://github.com/woodpecker-ci/plugin-prettier/pull/23)]
-   Update woodpeckerci/plugin-ready-release-go Docker tag to v1.1.0 \[[#&#8203;22](https://github.com/woodpecker-ci/plugin-prettier/pull/22)]

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "every weekend" (UTC), Automerge - "before 4am" (UTC).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->

Co-authored-by: woodpecker-bot <woodpecker-bot@obermui.de>
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/385
Co-authored-by: Dependency bot <renovate-bot@noreply.codeberg.org>
Co-committed-by: Dependency bot <renovate-bot@noreply.codeberg.org>
2024-09-29 20:49:56 +00:00
Dependency bot
2d4152d18b chore(deps): update golangci/golangci-lint docker tag to v1.61.0 (#383)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [golangci/golangci-lint](https://github.com/golangci/golangci-lint) | minor | `v1.60.1` -> `v1.61.0` |

---

### Release Notes

<details>
<summary>golangci/golangci-lint (golangci/golangci-lint)</summary>

### [`v1.61.0`](https://github.com/golangci/golangci-lint/blob/HEAD/CHANGELOG.md#v1610)

[Compare Source](https://github.com/golangci/golangci-lint/compare/v1.60.3...v1.61.0)

1.  Enhancements
    -   Add `junit-xml-extended` format
    -   Exclude Swagger Codegen files by default
2.  Updated linters
    -   `dupword`: from 0.0.14 to 0.1.1
    -   `fatcontext`: from 0.4.0 to 0.5.2
    -   `gci`: from 0.13.4 to 0.13.5 (new option `no-lex-order`)
    -   `go-ruleguard`: from 0.4.2 to [`0fe6f58`](https://github.com/golangci/golangci-lint/commit/0fe6f58b47b1) (fix panic with custom linters)
    -   `godot`: from 1.4.16 to 1.4.17
    -   `gomodguard`: from 1.3.3 to 1.3.5
    -   `gosec`: disable temporarily `G407`
    -   `gosec`: from [`ab3f6c1`](https://github.com/golangci/golangci-lint/commit/ab3f6c1c83a0) to 2.21.2 (partially fix `G115`)
    -   `intrange`: from 0.1.2 to 0.2.0
    -   `nolintlint`: remove the empty line in the directive replacement
3.  Misc.
    -   Improve runtime version parsing
4.  Documentation
    -   Add additional info about `typecheck`

### [`v1.60.3`](https://github.com/golangci/golangci-lint/blob/HEAD/CHANGELOG.md#v1603)

[Compare Source](https://github.com/golangci/golangci-lint/compare/v1.60.2...v1.60.3)

1.  Updated linters
    -   `gosec`: from [`81cda2f`](https://github.com/golangci/golangci-lint/commit/81cda2f91fbe) to [`ab3f6c1`](https://github.com/golangci/golangci-lint/commit/ab3f6c1c83a0) (fix `G115` false positives)
2.  Misc.
    -   Check that the Go version use to build is greater or equals to the Go version of the project

### [`v1.60.2`](https://github.com/golangci/golangci-lint/blob/HEAD/CHANGELOG.md#v1602)

[Compare Source](https://github.com/golangci/golangci-lint/compare/v1.60.1...v1.60.2)

1.  Updated linters

-   `gofmt`: update to HEAD (go1.22)
-   `gofumpt`: from 0.6.0 to 0.7.0
-   `gosec`: fix G602 analyzer
-   `gosec`: from [`5f0084e`](https://github.com/golangci/golangci-lint/commit/5f0084eb01a9) to [`81cda2f`](https://github.com/golangci/golangci-lint/commit/81cda2f91fbe) (adds `G115`, `G405`, `G406`, `G506`, `G507`)
-   `staticcheck`: from 0.5.0 to 0.5.1
-   `staticcheck`: propagate Go version
-   `wrapcheck`: from 2.8.3 to 2.9.0
-   ⚠️ `exportloopref`: deprecation

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "every weekend" (UTC), Automerge - "before 4am" (UTC).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->

Co-authored-by: woodpecker-bot <woodpecker-bot@obermui.de>
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/383
Co-authored-by: Dependency bot <renovate-bot@noreply.codeberg.org>
Co-committed-by: Dependency bot <renovate-bot@noreply.codeberg.org>
2024-09-29 20:48:31 +00:00
Dependency bot
557a295732 chore(deps): update golangci/golangci-lint docker tag to v1.60.1 (#381)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [golangci/golangci-lint](https://github.com/golangci/golangci-lint) | minor | `v1.59.1` -> `v1.60.1` |

---

### Release Notes

<details>
<summary>golangci/golangci-lint (golangci/golangci-lint)</summary>

### [`v1.60.1`](https://github.com/golangci/golangci-lint/blob/HEAD/CHANGELOG.md#v1601)

[Compare Source](https://github.com/golangci/golangci-lint/compare/v1.59.1...v1.60.1)

1.  Updated linters
    -   `errorlint`: from 1.5.2 to 1.6.0
    -   `exhaustruct`: from 3.2.0 to 3.3.0 (recognize custom error values in return)
    -   `fatcontext`: from 0.2.2 to 0.4.0 (fix false positives for context stored in structs)
    -   `gocognit`: from 1.1.2 to 1.1.3
    -   `gomodguard`: from 1.3.2 to 1.3.3
    -   `govet` (`printf`): report non-constant format, no args
    -   `lll`: advertise max line length instead of just reporting failure
    -   `revive`: from 1.3.7 to 1.3.9 (new rule: `comments-density`)
    -   `sloglint`: from 0.7.1 to 0.7.2
    -   `spancheck`: from 0.6.1 to 0.6.2
    -   `staticcheck`: from 0.4.7 to 0.5.0
    -   `tenv`: from 1.7.1 to 1.10.0 (remove reports on fuzzing)
    -   `testifylint`: from 1.3.1 to 1.4.3 (new options: `formatter`, `suite-broken-parallel`, `suite-subtest-run`)
    -   `tparallel`: from 0.3.1 to 0.3.2
    -   `usestdlibvars`: from 1.26.0 to 1.27.0 (fix false-positive with number used inside a mathematical operations)
    -   `wsl`: from 4.2.1 to 4.4.1
    -   ️⚠️ `unused`: remove `exported-is-used` option
2.  Fixes
    -   SARIF: sanitize level property
    -   ️⚠️ `typecheck` issues should never be ignored
3.  Documentation
    -   Add link on linter without configuration
    -   Remove 'trusted by' page
    -   `wsl` update documentation of the configuration
4.  misc.
    -   🎉 go1.23 support

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "every weekend" (UTC), Automerge - "before 4am" (UTC).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->

Co-authored-by: woodpecker-bot <woodpecker-bot@obermui.de>
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/381
Co-authored-by: Dependency bot <renovate-bot@noreply.codeberg.org>
Co-committed-by: Dependency bot <renovate-bot@noreply.codeberg.org>
2024-08-19 20:20:59 +00:00
Dependency bot
c76daaca4d chore(deps): update golang docker tag to v1.23 (#380)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| golang | minor | `1.22` -> `1.23` |

---

### Configuration

📅 **Schedule**: Branch creation - "every weekend" (UTC), Automerge - "before 4am" (UTC).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->

Co-authored-by: woodpecker-bot <woodpecker-bot@obermui.de>
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/380
Co-authored-by: Dependency bot <renovate-bot@noreply.codeberg.org>
Co-committed-by: Dependency bot <renovate-bot@noreply.codeberg.org>
2024-08-19 20:20:07 +00:00
Dependency bot
6cff8d2ee9 chore(deps): update woodpeckerci/plugin-release docker tag to v0.2.1 (#376)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [woodpeckerci/plugin-release](https://codeberg.org/woodpecker-plugins/release) ([source](https://codeberg.org/woodpecker-plugins/release.git)) | minor | `0.1.0` -> `0.2.1` |

---

### Release Notes

<details>
<summary>woodpecker-plugins/release (woodpeckerci/plugin-release)</summary>

### [`v0.2.1`](https://codeberg.org/woodpecker-plugins/release/releases/tag/v0.2.1)

[Compare Source](https://codeberg.org/woodpecker-plugins/release/compare/v0.2.0...v0.2.1)

-   Fix infinite loop ([#&#8203;13](https://github.com/woodpecker-plugins/release/issues/13))

### [`v0.2.0`](https://codeberg.org/woodpecker-plugins/release/releases/tag/v0.2.0)

[Compare Source](https://codeberg.org/woodpecker-plugins/release/compare/v0.1.0...v0.2.0)

### Bugfix

-   Fix loading without releases ([#&#8203;9](https://github.com/woodpecker-plugins/release/issues/9))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "every weekend" (UTC), Automerge - "before 4am" (UTC).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->

Co-authored-by: woodpecker-bot <woodpecker-bot@obermui.de>
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/376
Co-authored-by: Dependency bot <renovate-bot@noreply.codeberg.org>
Co-committed-by: Dependency bot <renovate-bot@noreply.codeberg.org>
2024-08-19 20:19:04 +00:00
Gnaaarwhal
9524b1eb12 Fix typo in README.md (#374)
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/374
Reviewed-by: crapStone <codeberg@crapstone.dev>
Co-authored-by: Gnaaarwhal <gnaaarwhal@noreply.codeberg.org>
Co-committed-by: Gnaaarwhal <gnaaarwhal@noreply.codeberg.org>
2024-08-02 12:52:44 +00:00
crapStone
c9be1ce75d fix docker latest tagging (#372)
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/372
Co-authored-by: crapStone <me@crapstone.dev>
Co-committed-by: crapStone <me@crapstone.dev>
2024-07-23 21:18:06 +00:00
crapStone
5265b3884b
don't depend on lint for push to main 2024-07-23 22:58:34 +02:00
crapStone
68825a1727 improve pipeline config (#371)
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/371
Co-authored-by: crapStone <me@crapstone.dev>
Co-committed-by: crapStone <me@crapstone.dev>
2024-07-23 20:32:46 +00:00
Dependency bot
abbebbbcee fix(deps): update golang.org/x/exp digest to 8a7402a (#368) 2024-07-23 20:19:44 +00:00
Dependency bot
6ce17461e6 chore(deps): update woodpeckerci/plugin-docker-buildx docker tag to v4.2.0 (#362)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [woodpeckerci/plugin-docker-buildx](https://codeberg.org/woodpecker-plugins/docker-buildx) ([source](https://codeberg.org/woodpecker-plugins/docker-buildx.git)) | minor | `4.0.0` -> `4.2.0` |
| [woodpeckerci/plugin-docker-buildx](https://codeberg.org/woodpecker-plugins/docker-buildx) ([source](https://codeberg.org/woodpecker-plugins/docker-buildx.git)) | major | `3.2.1` -> `4.2.0` |

---

### Release Notes

<details>
<summary>woodpecker-plugins/docker-buildx (woodpeckerci/plugin-docker-buildx)</summary>

### [`v4.2.0`](https://codeberg.org/woodpecker-plugins/docker-buildx/releases/tag/v4.2.0)

[Compare Source](https://codeberg.org/woodpecker-plugins/docker-buildx/compare/v4.1.0...v4.2.0)

##### Features

-   Add dedicated setting to automatically handle proxy configuration ([#&#8203;171](https://github.com/woodpecker-plugins/docker-buildx/issues/171))

##### Dependencies

-   chore(deps): update docker/buildx-bin docker tag to v0.16.0
-   fix(deps): update module github.com/aws/aws-sdk-go to v1.54.19

### [`v4.1.0`](https://codeberg.org/woodpecker-plugins/docker-buildx/releases/tag/v4.1.0)

[Compare Source](https://codeberg.org/woodpecker-plugins/docker-buildx/compare/v4.0.0...v4.1.0)

##### Features

-   Pass Daemon.Mirror to Docker daemon ([#&#8203;165](https://github.com/woodpecker-plugins/docker-buildx/issues/165))

##### Bug Fixes

-   Respect repository mirrors without login credentials ([#&#8203;164](https://github.com/woodpecker-plugins/docker-buildx/issues/164))

##### Dependencies

-   chore(deps): update docker/buildx-bin docker tag to v0.15.1
-   chore(deps): update docker docker tag to v26.1.4

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "every weekend" (UTC), Automerge - "before 4am" (UTC).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these updates again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MzEuMCIsInVwZGF0ZWRJblZlciI6IjM3LjQzMi4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->

Co-authored-by: woodpecker-bot <woodpecker-bot@obermui.de>
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/362
Reviewed-by: crapStone <codeberg@crapstone.dev>
Co-authored-by: Dependency bot <renovate-bot@noreply.codeberg.org>
Co-committed-by: Dependency bot <renovate-bot@noreply.codeberg.org>
2024-07-23 20:01:02 +00:00
crapStone
efd1adae0f fix woodpecker pipeline definition (#370)
use https://woodpecker-ci.org/plugins/Release instead of the old drone plugin

Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/370
Co-authored-by: crapStone <me@crapstone.dev>
Co-committed-by: crapStone <me@crapstone.dev>
2024-07-23 19:50:54 +00:00
Peter Gerber
bc9111a05f Use correct timestamp format for Last-Modified header (#365)
HTTP uses GMT [1,2] rather than UTC as timezone for timestamps. However,
the Last-Modified header used UTC which confused at least wget.

Before, UTC was used:

$ wget --no-check-certificate -S --spider https://cb_pages_tests.localhost.mock.directory:4430/images/827679288a.jpg
...
  Last-Modified: Sun, 11 Sep 2022 08:37:42 UTC
...
Last-modified header invalid -- time-stamp ignored.
...

After, GMT is used:

$ wget --no-check-certificate -S --spider https://cb_pages_tests.localhost.mock.directory:4430/images/827679288a.jpg
...
  Last-Modified: Sun, 11 Sep 2022 08:37:42 GMT
...
(no last-modified-header-invalid warning)

[1]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Last-Modified
[2]: https://www.rfc-editor.org/rfc/rfc9110#name-date-time-formats

Fixes #364

---

Whatt I noticed is that the If-Modified-Since header isn't accepted (neither with GMT nor with UTC):

```
$ wget --header "If-Modified-Since: Sun, 11 Sep 2022 08:37:42 GMT" --no-check-certificate -S --spider https://cb_pages_tests.localhost.mock.directory:4430/images/827679288a.jpg
Spider mode enabled. Check if remote file exists.
--2024-07-15 23:31:41--  https://cb_pages_tests.localhost.mock.directory:4430/images/827679288a.jpg
Resolving cb_pages_tests.localhost.mock.directory (cb_pages_tests.localhost.mock.directory)... 127.0.0.1
Connecting to cb_pages_tests.localhost.mock.directory (cb_pages_tests.localhost.mock.directory)|127.0.0.1|:4430... connected.
WARNING: The certificate of ‘cb_pages_tests.localhost.mock.directory’ is not trusted.
WARNING: The certificate of ‘cb_pages_tests.localhost.mock.directory’ doesn't have a known issuer.
HTTP request sent, awaiting response...
  HTTP/1.1 200 OK
  Allow: GET, HEAD, OPTIONS
  Cache-Control: public, max-age=600
  Content-Length: 124635
  Content-Type: image/jpeg
  Etag: "073af1960852e2a4ef446202c7974768b9881814"
  Last-Modified: Sun, 11 Sep 2022 08:37:42 GMT
  Referrer-Policy: strict-origin-when-cross-origin
  Server: pages-server
  Strict-Transport-Security: max-age=63072000; includeSubdomains; preload
  Date: Mon, 15 Jul 2024 21:31:42 GMT
Length: 124635 (122K) [image/jpeg]
Remote file exists
```

I would have expected a 304 (Not Modified) rather than a 200 (OK). I assume this is simply not supported and on production 304 is returned by a caching proxy in front of pages-server.

Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/365
Reviewed-by: crapStone <codeberg@crapstone.dev>
Co-authored-by: Peter Gerber <peter@arbitrary.ch>
Co-committed-by: Peter Gerber <peter@arbitrary.ch>
2024-07-23 18:42:24 +00:00
Dependency bot
17530a065b fix(deps): update golang.org/x/exp digest to 46b0784 (#363) 2024-07-14 01:21:11 +00:00
Dependency bot
d583587773 chore(deps): update mstruebing/editorconfig-checker docker tag to v3.0.3 (#360) 2024-07-08 00:52:53 +00:00
Dependency bot
4e44ea1d58 chore(deps): update pipelinecomponents/yamllint docker tag to v0.31.3 (#361) 2024-07-07 01:09:14 +00:00
Dependency bot
c043a887c2 fix(deps): update golang.org/x/exp digest to 7f521ea (#356) 2024-06-17 00:53:42 +00:00
Dependency bot
adcd973ade chore(deps): update golangci/golangci-lint docker tag to v1.59.1 (#357) 2024-06-16 01:04:41 +00:00
fnetX
2c1701a657 Remove RAW_INFO_PAGE from README (#353)
https://codeberg.org/Codeberg/pages-server/pulls/261 removed that option, but not from the README.
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/353
Co-authored-by: fnetX <otto@codeberg.org>
Co-committed-by: fnetX <otto@codeberg.org>
2024-06-13 13:31:27 +00:00
Dependency bot
e61ab7075b fix(deps): update golang.org/x/exp digest to fc45aab (#352) 2024-06-09 01:17:54 +00:00
Dependency bot
4543033874 fix(deps): update golang.org/x/exp digest to fd00a4e (#346) 2024-06-02 01:02:45 +00:00
Dependency bot
05413e50c6 chore(deps): update golangci/golangci-lint docker tag to v1.59.0 (#345) 2024-05-30 00:43:46 +00:00
Dependency bot
3928cd7aff fix(deps): update golang.org/x/exp digest to 4c93da0 (#344) 2024-05-29 00:33:03 +00:00
adagio
74cdf78044 Sorts the env var flags (#334)
Applies a sort for the various env flags for ease of user lookup.

Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/334
Reviewed-by: crapStone <codeberg@crapstone.dev>
Co-authored-by: adagio <h759bkyo4@mozmail.com>
Co-committed-by: adagio <h759bkyo4@mozmail.com>
2024-05-27 15:00:10 +00:00
crapStone
2c41e11f2f Use hashicorp's LRU cache for DNS & certificates (#315)
Taken from #301

Co-authored-by: Moritz Marquardt <git@momar.de>
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/315
2024-05-26 20:05:46 +00:00
Dependency bot
b9a9467dba chore(deps): update woodpeckerci/plugin-docker-buildx docker tag to v4 (#332)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [woodpeckerci/plugin-docker-buildx](https://codeberg.org/woodpecker-plugins/docker-buildx) ([source](https://codeberg.org/woodpecker-plugins/docker-buildx.git)) | major | `3.2.1` -> `4.0.0` |

---

### Release Notes

<details>
<summary>woodpecker-plugins/docker-buildx (woodpeckerci/plugin-docker-buildx)</summary>

### [`v4.0.0`](https://codeberg.org/woodpecker-plugins/docker-buildx/releases/tag/v4.0.0)

[Compare Source](https://codeberg.org/woodpecker-plugins/docker-buildx/compare/v3.2.1...v4.0.0)

-   chore(deps): update docker docker tag to v26.1.0
-   chore(deps): update docker/buildx-bin docker tag to v0.14.0 ([#&#8203;155](https://github.com/woodpecker-plugins/docker-buildx/issues/155))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "every weekend" (UTC), Automerge - "before 4am" (UTC).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNTQuNSIsInVwZGF0ZWRJblZlciI6IjM3LjM1NC41IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->

Co-authored-by: woodpecker-bot <woodpecker-bot@obermui.de>
Co-authored-by: crapStone <codeberg@crapstone.dev>
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/332
Co-authored-by: Dependency bot <renovate-bot@noreply.codeberg.org>
Co-committed-by: Dependency bot <renovate-bot@noreply.codeberg.org>
2024-05-26 17:11:00 +00:00
crapStone
77a8439ea7 Rename gitea to forge in cli args and env variables (#339)
This PR renames `gitea` in cli args to `forge` and `GITEA` in environment variables to `FORGE` and adds the gitea names as aliases for the forge names.

Also closes #311

Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/339
2024-05-26 14:45:03 +00:00
pat-s
eea009c7fe Allow building PR images on demand (#340)
Triggered when the label is set in a PR.
Helps to test changes in PRs.

Co-authored-by: crapStone <codeberg@crapstone.dev>
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/340
Reviewed-by: crapStone <codeberg@crapstone.dev>
Co-authored-by: pat-s <patrick.schratz@gmail.com>
Co-committed-by: pat-s <patrick.schratz@gmail.com>
2024-05-26 14:34:03 +00:00
Dependency bot
885cfac2ec chore(deps): update golangci/golangci-lint docker tag to v1.58.2 (#341) 2024-05-26 01:26:39 +00:00
Dependency bot
69361c69c1 chore(deps): update pipelinecomponents/yamllint docker tag to v0.31.2 (#336) 2024-05-20 00:39:02 +00:00
pat-s
b54cd38d0b Fix Dockerfile binary location (#337)
I know get the following

```
docker run --rm pages-server:test
12:40PM ERR A fatal error occurred error="could not create new gitea client: Get \"/api/v1/version\": unsupported protocol scheme \"\""
```

which I am not sure is OK as doing the same with v5.1 results in

```
docker run --platform linux/amd64 --rm -it codeberg.org/codeberg/pages-server:v5.1

ACME client has wrong config: you must set $ACME_ACCEPT_TERMS and $DNS_PROVIDER, unless $ACME_API is set to https://acme.mock.directory
```

The error is the same though what I get when building of 8cba7f9c8a (just before merging the multi-arch PR).
Not sure if this ERR is expected but it should be unrelated to the multiarch approach.

Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/337
Reviewed-by: crapStone <codeberg@crapstone.dev>
Co-authored-by: pat-s <patrick.schratz@gmail.com>
Co-committed-by: pat-s <patrick.schratz@gmail.com>
2024-05-19 16:18:11 +00:00
Dependency bot
c1df2f068b fix(deps): update golang.org/x/exp digest to 9bf2ced (#335) 2024-05-19 01:11:30 +00:00
Dependency bot
d74f1fe8a4 chore(deps): update golangci/golangci-lint docker tag to v1.58.1 (#333) 2024-05-12 00:55:23 +00:00
Dependency bot
adf13bfdbc chore(deps): update mstruebing/editorconfig-checker docker tag to v3 (#329)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| mstruebing/editorconfig-checker | major | `2.7.2` -> `v3.0.1` |

---

### Configuration

📅 **Schedule**: Branch creation - "every weekend" (UTC), Automerge - "before 4am" (UTC).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNDAuNSIsInVwZGF0ZWRJblZlciI6IjM3LjM0MC41IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->

Co-authored-by: woodpecker-bot <woodpecker-bot@obermui.de>
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/329
Co-authored-by: Dependency bot <renovate-bot@noreply.codeberg.org>
Co-committed-by: Dependency bot <renovate-bot@noreply.codeberg.org>
2024-05-07 09:09:27 +00:00
Dependency bot
7c49c4b967 chore(deps): update golangci/golangci-lint docker tag to v1.58.0 (#330) 2024-05-05 00:59:58 +00:00
Dependency bot
eb08c46dcd chore(deps): update golang docker tag to v1.22 (#326)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| golang | minor | `1.21` -> `1.22` |

---

### Configuration

📅 **Schedule**: Branch creation - "every weekend" (UTC), Automerge - "before 4am" (UTC).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMzMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjMzMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->

Co-authored-by: woodpecker-bot <woodpecker-bot@obermui.de>
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/326
Reviewed-by: crapStone <codeberg@crapstone.dev>
Co-authored-by: Dependency bot <renovate-bot@noreply.codeberg.org>
Co-committed-by: Dependency bot <renovate-bot@noreply.codeberg.org>
2024-05-02 13:20:17 +00:00
crapStone
56d44609ea Add option to start http server for profiling (#323)
https://rafallorenz.com/go/go-profiling-http-service-with-pprof-and-expvar/
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/323
Co-authored-by: crapStone <me@crapstone.dev>
Co-committed-by: crapStone <me@crapstone.dev>
2024-04-30 19:50:03 +00:00
pat-s
ca9433e0ea
run lint workflow on main branch to unblock build workflow 2024-04-29 14:48:00 +02:00
pat-s
d09c6e1218 Multiarch images (#324)
taken from #214

Configured to only build multiarch when also publishing (when running in `main` or for a release)

## Build time

- amd64 & arm64: 07:42
- amd64 only: 04:26

Build time via kaniko building only amd64: ~ 6/7 min

Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/324
Reviewed-by: crapStone <codeberg@crapstone.dev>
Co-authored-by: pat-s <patrick.schratz@gmail.com>
Co-committed-by: pat-s <patrick.schratz@gmail.com>
2024-04-29 12:46:00 +00:00
pat-s
8cba7f9c8a Add yamllint (#321)
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/321
Reviewed-by: crapStone <codeberg@crapstone.dev>
Co-authored-by: pat-s <patrick.schratz@gmail.com>
Co-committed-by: pat-s <patrick.schratz@gmail.com>
2024-04-28 21:48:07 +00:00