Skip to content

Commit

Permalink
use go modules
Browse files Browse the repository at this point in the history
  • Loading branch information
rajatjindal committed Jan 14, 2020
1 parent cb5cef6 commit 0fcb650
Show file tree
Hide file tree
Showing 1,940 changed files with 319 additions and 893,440 deletions.
21 changes: 0 additions & 21 deletions .github/workflows/main.yml

This file was deleted.

24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: release
on:
push:
tags:
- 'v*.*.*'
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup Go
uses: actions/setup-go@v1
with:
go-version: 1.13
- name: GoReleaser
uses: goreleaser/goreleaser-action@v1
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update new version in krew-index
uses: rajatjindal/[email protected]
20 changes: 20 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
builds:
- id: kubectl-modify-secret
main: ./
binary: kubectl-modify-secret
env:
- CGO_ENABLED=0
goos:
- darwin
- linux
goarch:
- amd64

archives:
- builds:
- kubectl-modify-secret
name_template: "{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
wrap_in_directory: false
format: tar.gz
files:
- LICENSE
4 changes: 2 additions & 2 deletions .krew.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
matchLabels:
os: darwin
arch: amd64
{{addURIAndSha "https://github.com/rajatjindal/kubectl-modify-secret/releases/download/{{ .TagName }}/darwin-amd64-{{ .TagName }}.tar.gz" .TagName }}
{{addURIAndSha "https://github.com/rajatjindal/kubectl-modify-secret/releases/download/{{ .TagName }}/kubectl-moodify-secret_{{ .TagName }}_darwin_amd64.tar.gz" .TagName }}
files:
- from: "*"
to: "."
Expand All @@ -18,7 +18,7 @@ spec:
matchLabels:
os: linux
arch: amd64
{{addURIAndSha "https://github.com/rajatjindal/kubectl-modify-secret/releases/download/{{ .TagName }}/linux-amd64-{{ .TagName }}.tar.gz" .TagName }}
{{addURIAndSha "https://github.com/rajatjindal/kubectl-modify-secret/releases/download/{{ .TagName }}/kubectl-modify-secret_{{ .TagName }}_darwin_amd64.tar.gz" .TagName }}
files:
- from: "*"
to: "."
Expand Down
Loading

0 comments on commit 0fcb650

Please sign in to comment.