Skip to content

README: Update releases #59

README: Update releases

README: Update releases #59

Workflow file for this run

name: Hubble CLI tests
on:
pull_request:
paths-ignore:
- 'cilium-cli/**'
- 'Documentation/**'
- 'test/**'
# The push event is only used to recreate the golang cache for hubble-cli
push:
branches:
- main
- ft/main/**
paths-ignore:
- 'cilium-cli/**'
- 'Documentation/**'
- 'test/**'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.after }}
cancel-in-progress: true
jobs:
build-hubble-cli-release-binaries:
name: Build Hubble CLI release binaries
runs-on: ubuntu-24.04
steps:
- name: Checkout the repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup go
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
cache: false
# renovate: datasource=golang-version depName=go
go-version: 1.23.5
# Load Golang cache build from GitHub
- name: Load hubble-cli Golang cache build from GitHub
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
id: cache
with:
path: /tmp/.cache/hubble-cli
key: ${{ runner.os }}-go-hubble-cli-cache-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-hubble-cli-cache-
${{ runner.os }}-go-
- name: Create cache directories if they don't exist
if: ${{ steps.go-cache.outputs.cache-hit != 'true' }}
shell: bash
run: |
mkdir -p /tmp/.cache/hubble-cli/.cache/go-build
mkdir -p /tmp/.cache/hubble-cli/pkg
- name: Build hubble CLI release binaries
if: ${{ github.event_name != 'push' || ( github.event_name == 'push' && steps.go-cache.outputs.cache-hit != 'true' ) }}
env:
GOCACHE: "/tmp/.cache/hubble-cli/.cache/go-build"
GOMODCACHE: "/tmp/.cache/hubble-cli/pkg"
run: |
make -C hubble local-release