From a1aaa3ba1fd4daa997803bf1b93522a1a02424d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20T=C3=B6lle?= Date: Mon, 5 Aug 2024 19:41:52 +0200 Subject: [PATCH] ci: setup release workflow --- .github/workflows/release.yaml | 22 ++++++++++++++++++++++ .ko.yaml | 3 +++ 2 files changed, 25 insertions(+) create mode 100644 .github/workflows/release.yaml create mode 100644 .ko.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..b684f77 --- /dev/null +++ b/.github/workflows/release.yaml @@ -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 }} diff --git a/.ko.yaml b/.ko.yaml new file mode 100644 index 0000000..c7c0e49 --- /dev/null +++ b/.ko.yaml @@ -0,0 +1,3 @@ +defaultPlatforms: + - linux/arm64 + - linux/amd64 \ No newline at end of file