Skip to content

Commit

Permalink
Merge pull request #7 from bjw-s/fix_binary
Browse files Browse the repository at this point in the history
fix: Fix binary name and permissions
  • Loading branch information
clbx authored Jan 11, 2024
2 parents 0aa7afd + cb9e619 commit 5d7d6e6
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 64 deletions.
84 changes: 43 additions & 41 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,52 +3,54 @@ name: Build kubectl-browse-pvc
on:
push:
branches:
- main
- main

jobs:
build-darwin:
runs-on: macos-latest
steps:
- name: Set up Go
uses: actions/[email protected]
with:
go-version: '1.20.5'

- name: Check out Code
uses: actions/[email protected]

- name: Build
run: go build -v -o kubectl-browse_pvc .

- name: Upload Artifact
uses: actions/[email protected]
with:
name: kubectl-browse-pvc-darwin
path: |
./kubectl-browse_pvc
LICENSE
- name: Set up Go
uses: actions/[email protected]
with:
go-version: "1.20.5"

- name: Check out Code
uses: actions/[email protected]

- name: Build
run: go build -v -o kubectl-browse-pvc .

- name: Fix permissions
run: chmod +x ./kubectl-browse-pvc

- name: Upload Artifact
uses: actions/[email protected]
with:
name: kubectl-browse-pvc-darwin
path: |
./kubectl-browse-pvc
LICENSE
build-linux:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/[email protected]
with:
go-version: '1.20.5'

- name: Check out Code
uses: actions/[email protected]

- name: Build
run: go build -v -o kubectl-browse_pvc .

- name: Upload Artifact
uses: actions/[email protected]
with:
name: kubectl-browse-pvc-linux
path: |
./kubectl-browse_pvc
LICENSE
- name: Set up Go
uses: actions/[email protected]
with:
go-version: "1.20.5"

- name: Check out Code
uses: actions/[email protected]

- name: Build
run: go build -v -o kubectl-browse-pvc .

- name: Fix permissions
run: chmod +x ./kubectl-browse-pvc

- name: Upload Artifact
uses: actions/[email protected]
with:
name: kubectl-browse-pvc-linux
path: |
./kubectl-browse-pvc
LICENSE
5 changes: 3 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /bin/bash
#! /bin/bash
go build .
mv kubectl-browse-pvc ~/.bin/kubectl-browse_pvc
mv kubectl-browse-pvc ~/.bin/kubectl-browse-pvc
chmod +x ~/.bin/kubectl-browse-pvc
42 changes: 21 additions & 21 deletions kubectl-browse-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,24 @@ spec:
shortDescription: "Browse PVCs from the command line"
description: "Browse PVCs from the command line"
platforms:
# macOS
- selector:
matchLabels:
os: darwin
uri: https://github.com/clbx/kubectl-browse-pvc/releases/download/v0.3/kubectl-browse-pvc-darwin.zip
sha256: "0e0fc4e163e8434f9142edaa3b41fb1246e5c4dc652947284d6b8d49334601bd"
files:
- from: "*"
to: "."
bin: kubectl-browse_pvc
# linux
- selector:
matchLabels:
os: linux
arch: amd64
uri: https://github.com/clbx/kubectl-browse-pvc/releases/download/v0.3/kubectl-browse-pvc-linux.zip
sha256: "f76e685c8b97057a1acd3783e03658328bb79b57b6a11ce30dccf898d1ec5319"
files:
- from: "*"
to: "."
bin: kubectl-browse_pvc
# macOS
- selector:
matchLabels:
os: darwin
uri: https://github.com/clbx/kubectl-browse-pvc/releases/download/v0.3/kubectl-browse-pvc-darwin.zip
sha256: "0e0fc4e163e8434f9142edaa3b41fb1246e5c4dc652947284d6b8d49334601bd"
files:
- from: "*"
to: "."
bin: kubectl-browse-pvc
# linux
- selector:
matchLabels:
os: linux
arch: amd64
uri: https://github.com/clbx/kubectl-browse-pvc/releases/download/v0.3/kubectl-browse-pvc-linux.zip
sha256: "f76e685c8b97057a1acd3783e03658328bb79b57b6a11ce30dccf898d1ec5319"
files:
- from: "*"
to: "."
bin: kubectl-browse-pvc

0 comments on commit 5d7d6e6

Please sign in to comment.