pages-server/.woodpecker/build.yml

127 lines
2.9 KiB
YAML
Raw Normal View History

when:
- event: [push, pull_request, tag, cron]
branch: ${CI_REPO_DEFAULT_BRANCH}
steps:
# use vendor to cache dependencies
vendor:
image: golang:1.22
commands:
- go mod vendor
build:
depends_on: vendor
image: codeberg.org/6543/docker-images/golang_just
pull: true
commands:
- go version
- just build
when:
- event: [push, pull_request]
docker-dryrun:
depends_on: vendor
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
image: woodpeckerci/plugin-docker-buildx:4.2.0
settings:
dockerfile: Dockerfile
platforms: linux/amd64
dry-run: true
tags: latest
when:
2024-07-23 20:58:34 +00:00
- event: [pull_request]
path: Dockerfile
build-tag:
depends_on: vendor
image: codeberg.org/6543/docker-images/golang_just
pull: true
commands:
- go version
- just build-tag ${CI_COMMIT_TAG##v}
when:
- event: [tag]
test:
depends_on: build
image: codeberg.org/6543/docker-images/golang_just
pull: true
commands:
- just test
when:
2024-07-23 20:58:34 +00:00
- event: [pull_request]
integration-tests:
depends_on: build
image: codeberg.org/6543/docker-images/golang_just
pull: true
commands:
- just integration
environment:
- ACME_API=https://acme.mock.directory
- PAGES_DOMAIN=localhost.mock.directory
- RAW_DOMAIN=raw.localhost.mock.directory
- PORT=4430
when:
2024-07-23 20:58:34 +00:00
- event: [pull_request]
release:
depends_on: build
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
image: woodpeckerci/plugin-release:0.2.1
settings:
base_url: https://codeberg.org
file_exists: overwrite
files: build/codeberg-pages-server
api_key:
from_secret: bot_token
when:
- event: [tag]
docker-next:
depends_on: vendor
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
image: woodpeckerci/plugin-docker-buildx:4.2.0
settings:
registry: codeberg.org
dockerfile: Dockerfile
platforms: linux/amd64,arm64
2022-08-12 05:02:24 +00:00
repo: codeberg.org/codeberg/pages-server
tags: next
username:
from_secret: bot_user
password:
from_secret: bot_token
when:
- event: [push]
'Publish PR image':
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
image: woodpeckerci/plugin-docker-buildx:4.2.0
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-release:
depends_on: vendor
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
image: woodpeckerci/plugin-docker-buildx:4.2.0
settings:
registry: codeberg.org
dockerfile: Dockerfile
platforms: linux/amd64,arm64
2022-08-12 05:02:24 +00:00
repo: codeberg.org/codeberg/pages-server
tags: [latest, '${CI_COMMIT_TAG}']
username:
from_secret: bot_user
password:
from_secret: bot_token
when:
- event: [tag]