Skip to content

Publish kubestash/[email protected] plugin

Publish kubestash/[email protected] plugin #156

Workflow file for this run

name: CI
on:
pull_request:
branches:
- "*"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build
runs-on: ubuntu-20.04
steps:
- name: Set up Go 1.20
uses: actions/setup-go@v1
with:
go-version: '1.20'
id: go
- name: Install kubectl
run: |
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.21.1/bin/linux/amd64/kubectl
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
- name: Install krew
run: |
cd "$(mktemp -d)"
curl -fsSLO "https://github.com/kubernetes-sigs/krew/releases/download/v0.4.1/krew.tar.gz"
tar zxvf krew.tar.gz
KREW=./krew-"$(uname | tr '[:upper:]' '[:lower:]')_amd64"
chmod +x "$KREW"
sudo mv "$KREW" /usr/local/bin/kubectl-krew
kubectl krew version
- name: Install validate-krew-manifest
run: |
export GOBIN=/usr/local/bin
go install sigs.k8s.io/krew/cmd/validate-krew-manifest@latest
validate-krew-manifest -h
- uses: actions/checkout@v1
- name: Run checks
run: |
make ci