ci: setup release workflow

This commit is contained in:
Julian Tölle 2024-08-05 19:41:52 +02:00
parent d1b9ae1908
commit a1aaa3ba1f
2 changed files with 25 additions and 0 deletions

22
.github/workflows/release.yaml vendored Normal file
View file

@ -0,0 +1,22 @@
name: release
on:
push:
tags:
- "v*.*.*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- uses: ko-build/setup-ko@v0.7
- run: ko build --bare --tags ${{ github.ref_name }}

3
.ko.yaml Normal file
View file

@ -0,0 +1,3 @@
defaultPlatforms:
- linux/arm64
- linux/amd64