Port CI to Forgejo Actions
All checks were successful
/ sbom (push) Has been skipped
/ build (darwin/amd64) (push) Successful in 1m36s
/ build (windows/arm64) (push) Successful in 1m37s
/ build (linux/arm64) (push) Successful in 1m57s
/ build (linux/amd64) (push) Successful in 4m11s
/ build (darwin/arm64) (push) Successful in 4m12s
/ build (windows/amd64) (push) Successful in 4m21s
/ build (push) Successful in 4m23s
/ docker (push) Successful in 0s
/ upload (push) Has been skipped
/ binaries (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:06 +01:00
commit 8b215abe2f
2 changed files with 15 additions and 41 deletions

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

@ -0,0 +1,15 @@
on:
push:
branches: ['**']
tags: ['**']
workflow_dispatch:
jobs:
binaries:
uses: infra/ci-snippets/.forgejo/workflows/go-binaries.yml@master
with:
binary-name: ems-esp-logger
docker:
uses: infra/ci-snippets/.forgejo/workflows/docker-build.yml@master
secrets: inherit

View file

@ -1,41 +0,0 @@
.parallel:
parallel:
matrix:
- GOOS: "linux"
GOARCH:
- amd64
- arm64
- GOOS: "windows"
GOARCH:
- amd64
- arm64
- GOOS: "darwin"
GOARCH:
- amd64
- arm64
stages:
- build
- deploy
build-application-binary:
stage: build
needs: []
parallel: !reference [ .parallel, parallel ]
image: golang:1.27.4
script:
- GOPROXY=https://goproxy.jonasled.dev,direct CGO_ENABLED=0 go build -ldflags="-s -w" -o ems-esp-logger-${GOOS}-${GOARCH} ./
- "if [ \"${GOOS}\" = \"windows\" ]; then
\ mv ems-esp-logger-${GOOS}-${GOARCH} ems-esp-logger-${GOOS}-${GOARCH}.exe\
fi\n"
artifacts:
paths:
- ems-esp-logger-${GOOS}-${GOARCH}
- ems-esp-logger-${GOOS}-${GOARCH}.exe
expire_in: 1 week
include:
- project: 'infra/ci'
file: '/pipelines/docker.yml'