Skip to content

Improve error handling in dashboard UI (#147) #33

Improve error handling in dashboard UI (#147)

Improve error handling in dashboard UI (#147) #33

Workflow file for this run

name: release-cli
on:
push:
tags:
- 'cli/v*'
jobs:
build:
name: Build binaries
strategy:
matrix:
os: [ubuntu-latest, arm64-ubuntu-22, macos-latest, macos-13, windows-latest]
include:
- os: ubuntu-latest
GOOS: linux
GOARCH: amd64
- os: arm64-ubuntu-22
GOOS: linux
GOARCH: arm64
- os: macos-latest
GOOS: darwin
GOARCH: arm64
- os: macos-13
GOOS: darwin
GOARCH: amd64
- os: windows-latest
GOOS: windows
GOARCH: amd64
runs-on: ${{ matrix.os }}
steps:
- name: Get tag name
uses: olegtarasov/[email protected]
id: tagName
with:
tagRegex: "cli/v(.*)"
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- uses: pnpm/action-setup@v3
with:
version: 9
- uses: actions/setup-go@v5
with:
go-version: '1.22.7'
cache: false
- name: Run build script
run: make build VERSION=${{ steps.tagName.outputs.tag }}
- name: Append os/arch to binary file name
run: mv bin/kubetail bin/kubetail-${{ matrix.GOOS }}-${{ matrix.GOARCH }}
- name: Calculate sha256 checksum
shell: bash
run: |
FILE=bin/kubetail-${{ matrix.GOOS }}-${{ matrix.GOARCH }}
OUTPUT_FILE=${FILE}.sha256
if [ "$RUNNER_OS" == "Linux" ]; then
sha256sum "$FILE" | cut -d " " -f 1 > "$OUTPUT_FILE"
elif [ "$RUNNER_OS" == "Windows" ]; then
certutil -hashfile "$FILE" SHA256 | awk 'NR==2' > "$OUTPUT_FILE"
elif [ "$RUNNER_OS" == "macOS" ]; then
shasum -a 256 "$FILE" | cut -d " " -f 1 > "$OUTPUT_FILE"
fi
- name: Attach files to gh release
uses: softprops/action-gh-release@v2
with:
files: bin/*
draft: false