Skip to content

deps: bump the k8s group across 1 directory with 6 updates #6528

deps: bump the k8s group across 1 directory with 6 updates

deps: bump the k8s group across 1 directory with 6 updates #6528

Workflow file for this run

name: goreleaser
on:
pull_request:
branches: [main]
push:
tags: ["v*"]
permissions:
contents: write
packages: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build kubectl-retina
if: github.ref_type == 'branch'
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: go.mod
- name: Install Syft
uses: anchore/sbom-action/download-syft@e22c389904149dbc22b58101806040fa8d37a610 # v0.24.0
- name: Run GoReleaser build
uses: goreleaser/goreleaser-action@f06c13b6b1a9625abc9e6e439d9c05a8f2190e94 # v7.2.3
env:
MCR_AGENT_IMAGE_NAME: mcr.microsoft.com/containernetworking/retina-agent
with:
distribution: goreleaser
version: latest
args: build --snapshot --clean
release:
name: Release kubectl-retina
runs-on: ubuntu-latest
timeout-minutes: 30
if: github.ref_type == 'tag'
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: go.mod
- name: Install Syft
uses: anchore/sbom-action/download-syft@e22c389904149dbc22b58101806040fa8d37a610 # v0.24.0
- name: Run GoReleaser release
uses: goreleaser/goreleaser-action@f06c13b6b1a9625abc9e6e439d9c05a8f2190e94 # v7.2.3
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MCR_AGENT_IMAGE_NAME: mcr.microsoft.com/containernetworking/retina-agent
- name: Check if release tag
id: check-tag
run: |
if [[ "${{ github.ref_name }}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "is_release=true" >> $GITHUB_OUTPUT
else
echo "is_release=false" >> $GITHUB_OUTPUT
fi
- name: Update new version in krew-index
if: github.repository_owner == 'microsoft' && steps.check-tag.outputs.is_release == 'true'
uses: rajatjindal/krew-release-bot@c970b8a8f6dbc2f2285a26e3ae160903b87002c3 # v0.0.51