Skip to content

Commit

Permalink
Merge pull request #43 from replicatedhq/laverya/build-arm64
Browse files Browse the repository at this point in the history
build arm64 and include arm64 binaries in krew
  • Loading branch information
laverya authored Apr 8, 2021
2 parents d322e33 + 3934ede commit 0a53aff
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ jobs:

steps:
- uses: actions/checkout@v2

- uses: actions/[email protected]
with:
go-version: "1.16.2"

- name: Build and test
run: make

4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ jobs:
steps:
- uses: actions/checkout@v2

- uses: actions/[email protected]
with:
go-version: "1.16.2"

- name: Run GoReleaser
uses: goreleaser/[email protected]
with:
Expand Down
1 change: 1 addition & 0 deletions deploy/.goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ builds:
goarch:
- amd64
- "386"
- arm64
env:
- CGO_ENABLED=0
- GO111MODULE=on
Expand Down
21 changes: 21 additions & 0 deletions deploy/krew/outdated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ spec:
arch: amd64
{{addURIAndSha "https://github.com/replicatedhq/outdated/releases/download/{{ .TagName }}/outdated_linux_amd64.tar.gz" .TagName }}
files:
- from: outdated
to: .
- from: LICENSE
to: .
bin: outdated
matchLabels:
os: linux
arch: arm64
{{addURIAndSha "https://github.com/replicatedhq/outdated/releases/download/{{ .TagName }}/outdated_linux_arm64.tar.gz" .TagName }}
files:
- from: outdated
to: .
- from: LICENSE
Expand All @@ -27,6 +37,17 @@ spec:
- from: LICENSE
to: .
bin: outdated
- selector:
matchLabels:
os: darwin
arch: arm64
{{addURIAndSha "https://github.com/replicatedhq/outdated/releases/download/{{ .TagName }}/outdated_darwin_arm64.tar.gz" .TagName }}
files:
- from: outdated
to: .
- from: LICENSE
to: .
bin: outdated
- selector:
matchLabels:
os: windows
Expand Down

0 comments on commit 0a53aff

Please sign in to comment.