Files
ssh-tarpit/.gitea/workflows/build.yml
T
tchivert 8deeb69504
docker / build (push) Failing after 1s
major refacto
2026-07-17 22:01:07 +02:00

42 lines
1.1 KiB
YAML

name: build
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup go
uses: actions/setup-go@v4
with:
go-version: '>=1.20'
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Linux build amd64
run: CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -trimpath -ldflags="-s -w" -o bin/ssh-tarpit-linux-amd64
- name: Linux build arm64
run: CGO_ENABLED=1 GOOS=linux GOARCH=arm64 go build -trimpath -ldflags="-s -w" -o bin/ssh-tarpit-linux-arm64
- name: Darwin build amd64
run: CGO_ENABLED=1 GOOS=darwin GOARCH=amd64 go build -trimpath -ldflags="-s -w" -o bin/ssh-tarpit-darwin-amd64
- name: Darwin build arm64
run: CGO_ENABLED=1 GOOS=darwin GOARCH=arm64 go build -trimpath -ldflags="-s -w" -o bin/ssh-tarpit-darwin-arm64
- name: Upload binaries to release
uses: https://gitea.com/actions/release-action@main
with:
draft: false
prerelease: false
files: |-
bin/**
api_key: "${{ secrets.RELEASE_TOKEN }}"