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