mv to codeberg

This commit is contained in:
2025-10-31 20:24:27 +01:00
parent 662dc39e8f
commit ba3867c4e6
7 changed files with 150 additions and 6 deletions

27
.woodpecker/build.yaml Normal file
View File

@@ -0,0 +1,27 @@
matrix:
platform:
- linux/amd64
goversion:
- 1.24
labels:
platform: ${platform}
steps:
build:
when:
event: [push]
image: golang:${goversion}
commands:
- go get
- go build
- go test
linter:
when:
event: [push]
image: golang:${goversion}
commands:
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/HEAD/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.5.0
- golangci-lint --version
- golangci-lint run ./...

35
.woodpecker/image.yaml Normal file
View File

@@ -0,0 +1,35 @@
when:
#branch: main
event: [push]
variables:
- &file Dockerfile.hello
- &repo codeberg.org/${CI_REPO_OWNER}/hello
steps:
dryrun:
image: docker.io/woodpeckerci/plugin-docker-buildx:latest
settings:
dockerfile: *file
platforms: linux/amd64
dry_run: true
repo: *repo
tags: latest
when:
event: pull_request
path: *file
publish:
image: docker.io/woodpeckerci/plugin-docker-buildx:latest
settings:
dockerfile: *file
platforms: linux/amd64
repo: *repo
registry: codeberg.org
tags: latest,1-${CI_COMMIT_SHA:0:8},${CI_COMMIT_TAG}
username: ${CI_REPO_OWNER}
password:
from_secret: deploy_token
when:
event: push
path: *file

15
.woodpecker/release.yaml Normal file
View File

@@ -0,0 +1,15 @@
# build release
labels:
platform: linux/amd64
steps:
goreleaser:
image: goreleaser/goreleaser
when:
event: [tag]
environment:
GITEA_TOKEN:
from_secret: DEPLOY_TOKEN
commands:
- goreleaser release --clean --verbose