Port CI to Forgejo Actions
All checks were successful
/ sbom (push) Has been skipped
/ build (darwin/amd64) (push) Successful in 1m16s
/ build (darwin/arm64) (push) Successful in 1m25s
/ build (windows/arm64) (push) Successful in 1m13s
/ build (linux/arm) (push) Successful in 1m22s
/ build (linux/amd64) (push) Successful in 1m25s
/ build (linux/arm64) (push) Successful in 1m20s
/ build (windows/amd64) (push) Successful in 1m23s
/ upload (push) Has been skipped
/ binaries (push) Successful in 0s
/ build (push) Successful in 3m15s
/ docker (push) Successful in 0s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Jonas Leder 2026-11-18 10:56:17 +01:00
commit 9d916b655e
2 changed files with 19 additions and 38 deletions

19
.forgejo/workflows/ci.yml Normal file
View file

@ -0,0 +1,19 @@
on:
push:
branches: ['**']
tags: ['**']
workflow_dispatch:
jobs:
binaries:
uses: infra/ci-snippets/.forgejo/workflows/go-binaries.yml@master
with:
binary-name: gotifyWebhookForwarder
ldflags: ''
cgo-enabled: ''
windows-exe: false
targets: '["darwin/amd64","darwin/arm64","linux/amd64","linux/arm","linux/arm64","windows/amd64","windows/arm64"]'
docker:
uses: infra/ci-snippets/.forgejo/workflows/docker-build.yml@master
secrets: inherit

View file

@ -1,38 +0,0 @@
.parallel:
parallel:
matrix:
- GOOS: "darwin"
GOARCH:
- amd64
- arm64
- GOOS: "linux"
GOARCH:
- amd64
- arm
- arm64
- GOOS: "windows"
GOARCH:
- amd64
- arm64
stages:
- build
- bundle
- deploy
build-application-binary:
stage: build
needs: []
parallel: !reference [.parallel,parallel]
image: golang:1.27.4
script:
- GOPROXY=https://goproxy.jonasled.dev,direct go build -o gotifyWebhookForwarder-${GOOS}-${GOARCH} ./
artifacts:
paths:
- gotifyWebhookForwarder-${GOOS}-${GOARCH}
include:
- project: 'infra/ci'
file: '/pipelines/docker.yml'