Skip to content

Merge pull request #761 from rancher-sandbox/dependabot/github_action… #290

Merge pull request #761 from rancher-sandbox/dependabot/github_action…

Merge pull request #761 from rancher-sandbox/dependabot/github_action… #290

name: Build and Upload kubectl plugin
on:
workflow_call:
inputs:
version:
type: string
push:
branches:
- "main"
jobs:
upload-kubectl-plugin:
name: Upload kubectl plugin
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
with:
go-version-file: "go.mod"
- name: Build kubectl plugin for all platforms
run: make kubectl-plugin-cross
- name: Upload plugin artifacts
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: kubectl-plugin
path: bin/kubectl-plugin/
if-no-files-found: error
retention-days: 7