Compare commits

..

1 commit
main ... rc

Author SHA1 Message Date
f14a366f1f
fix(ci): semantic-release 2024-11-21 01:40:19 +01:00
6 changed files with 44 additions and 16 deletions

View file

@ -19,7 +19,7 @@ jobs:
id: meta
with:
images: |
git.chaos.fyi/${{ github.repository }}
codeberg.org/${{ github.repository }}
tags: |
type=schedule
type=raw,value=latest,enable={{is_default_branch}}
@ -30,7 +30,7 @@ jobs:
- name: Container-Registry login
uses: docker/login-action@v3
with:
registry: git.chaos.fyi/wrenix
registry: codeberg.org/wrenix
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

36
.woodpecker/release.yaml Normal file
View file

@ -0,0 +1,36 @@
steps:
- name: 'semantic-release'
image: "docker.io/node"
when:
- event: push
branch:
- main
- master
- rc
environment:
GITEA_TOKEN:
from_secret: CODEBERG_TOKEN
commands:
- export GITEA_URL="$${CI_FORGE_URL}"
- git config credential.helper '!f() { sleep 1; echo "username=${CI_OWNER}"; echo "password=${GITEA_TOKEN}"; }; f'
- npm install semantic-release conventional-changelog-conventionalcommits @semantic-release/changelog @semantic-release/git @shamsievartyom/semantic-release-gitea
## gitlab release should be runned, so we need @git with skipCi=pushOption
## see: https://github.com/semantic-release/git/pull/264
- |
[ ! -f .releaserc ] && cat > .releaserc << EOF
branches:
- name: "main"
- name: "master"
- name: "rc"
prerelease: true
plugins:
- "@semantic-release/commit-analyzer"
- preset: "conventionalcommits"
- "@semantic-release/release-notes-generator"
- preset: "conventionalcommits"
- "@shamsievartyom/semantic-release-gitea"
EOF
- "npx semantic-release"

View file

@ -1,4 +1,4 @@
FROM ghcr.io/gohugoio/hugo:v0.142.0 as builder
FROM ghcr.io/gohugoio/hugo:v0.139.0 as builder
COPY --chown=hugo:hugo .git .git
COPY --chown=hugo:hugo content content

4
go.mod
View file

@ -5,7 +5,5 @@ go 1.23.2
require (
codeberg.org/wrenix/flux-charts v0.0.0-20241111111801-09752b52215b // indirect
codeberg.org/wrenix/helm-charts v0.0.0-20241108144325-1d57a623fc3e // indirect
git.chaos.fyi/wrenix/flux-charts v0.0.0-20250401222947-c5bf68c60cbd // indirect
git.chaos.fyi/wrenix/helm-charts v0.0.0-20250404084343-83eb4bb9252b // indirect
github.com/imfing/hextra v0.9.7 // indirect
github.com/imfing/hextra v0.8.6 // indirect
)

6
go.sum
View file

@ -8,11 +8,5 @@ codeberg.org/wrenix/helm-charts v0.0.0-20241106223712-cdddf6b09b90 h1:s7Q3qnQfAD
codeberg.org/wrenix/helm-charts v0.0.0-20241106223712-cdddf6b09b90/go.mod h1:Nd4pJ7oRNZvbFLxpC7qCQIHK3c0qf59wjq4ajMdJCjg=
codeberg.org/wrenix/helm-charts v0.0.0-20241108144325-1d57a623fc3e h1:Vr3B2r+j0Ry6WdXdlzZz+PCbjVBW5BS9qRf1LiX5uA4=
codeberg.org/wrenix/helm-charts v0.0.0-20241108144325-1d57a623fc3e/go.mod h1:Nd4pJ7oRNZvbFLxpC7qCQIHK3c0qf59wjq4ajMdJCjg=
git.chaos.fyi/wrenix/flux-charts v0.0.0-20250401222947-c5bf68c60cbd h1:X2MHLIDWDShwtmbTuWCXjWOae10JkiaxSc3x8El3KOs=
git.chaos.fyi/wrenix/flux-charts v0.0.0-20250401222947-c5bf68c60cbd/go.mod h1:BYSJakg99gvgKPQrY1c/QwLKz+zJ8sMtED0gRc+4bIE=
git.chaos.fyi/wrenix/helm-charts v0.0.0-20250404084343-83eb4bb9252b h1:FN9OZiGFwGisUC91+51IsA/l8zb1AvjzjDqR5ZTS1bk=
git.chaos.fyi/wrenix/helm-charts v0.0.0-20250404084343-83eb4bb9252b/go.mod h1:yQ55FaIwEKAdsKKKkssrXjEO88V6S7tp00fT/UVSadU=
github.com/imfing/hextra v0.8.6 h1:fpOqzcUs26Lc/ZzowYSBcnpe00d/aZw4HhiHP7ycSks=
github.com/imfing/hextra v0.8.6/go.mod h1:cEfel3lU/bSx7lTE/+uuR4GJaphyOyiwNR3PTqFTXpI=
github.com/imfing/hextra v0.9.7 h1:Zg5n24us36Bn/S/5mEUPkRW6uwE6vHHEqWSgN0bPXaM=
github.com/imfing/hextra v0.9.7/go.mod h1:cEfel3lU/bSx7lTE/+uuR4GJaphyOyiwNR3PTqFTXpI=

View file

@ -25,14 +25,14 @@ module:
target: content
imports:
- path: github.com/imfing/hextra
- path: "git.chaos.fyi/wrenix/helm-charts"
- path: "codeberg.org/wrenix/helm-charts"
mounts:
- source: "README.md"
target: content/docs/helm-charts/_index.md
- source: "."
target: "content/docs/helm-charts"
includeFiles: [ "*/README.md" ]
- path: "git.chaos.fyi/wrenix/flux-charts"
- path: "codeberg.org/wrenix/flux-charts"
mounts:
- source: "README.md"
target: content/docs/flux-charts/_index.md
@ -85,7 +85,7 @@ menu:
icon: mastodon
- name: git
weight: 7
url: "https://git.chaos.fyi/wrenix"
url: "https://codeberg.org/wrenix"
params:
icon: git
@ -104,7 +104,7 @@ params:
editURL:
enable: true
base: "https://git.chaos.fyi/wrenix/wrenix.eu/_edit/main/content"
base: "https://codeberg.org/wrenix/wrenix.eu/_edit/main/content"
blog:
list: