Files
gitea-mcp/.gitea/workflows/binford-build.yaml
T

55 lines
1.4 KiB
YAML

name: Build and Test
on:
workflow_dispatch:
inputs:
target_branch:
description: 'Branch to build'
required: true
jobs:
verify:
runs-on: container-builder
container:
image: debian:trixie-slim
env:
GOPROXY: https://gitea.nehmer.net/api/packages/torben/go,https://proxy.golang.org,direct
steps:
- name: Install CI Dependencies
run: |
apt-get update
apt-get install -y --no-install-recommends git nodejs curl unzip ca-certificates build-essential
- name: Checkout Code
uses: actions/checkout@v7
with:
ref: ${{ inputs.target_branch }}
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version-file: 'go.mod'
- name: Show Go Version
run: go version
- name: lint
run: make lint
- name: build
run: make build
- name: security-check
run: make security-check
- name: Paket als Artefakt hochladen
uses: actions/upload-artifact@v3
with:
name: gitea-mcp-amd64
path: dist/gitea-mcp
retention-days: 7
- name: Paket als Artefakt hochladen
uses: actions/upload-artifact@v3
with:
name: gitea-mcp-auth-proxy-linux-amd64
path: dist/authproxy
retention-days: 7