Skip to content

Commit

Permalink
Prepare release tooling (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed-mez committed Mar 30, 2020
1 parent 08a3634 commit 9571dea
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 3 deletions.
23 changes: 23 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
before:
hooks:
- go mod download
builds:
- id: kubectl-datadog
goos:
- linux
- darwin
- windows
goarch:
- amd64
main: ./cmd/kubectl-datadog/main.go
ldflags: -w -X github.com/DataDog/datadog-operator/version.Tag=${TAG} -X github.com/DataDog/datadog-operator/version.Commit=${GIT_COMMIT} -X github.com/DataDog/datadog-operator/version.Version=${VERSION} -X github.com/DataDog/datadog-operator/version.BuildTime=${DATE} -s
binary: kubectl-datadog
archives:
- id: kubectl-datadog
builds:
- kubectl-datadog
name_template: "kubectl-datadog_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
wrap_in_directory: false
format: zip
files:
- LICENSE
30 changes: 27 additions & 3 deletions datadog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ kind: Plugin
metadata:
name: datadog
spec:
version: v0.0.1
version: INVALID_SET_ME
shortDescription: Manage the Datadog Operator
description: |
The datadog kubectl plugin provides useful utilities to operate datadog-agent components
via the Datadog Operator and the DatadogAgent CRD.
homepage: https://github.com/DataDog/datadog-operator
platforms:
- uri: https://github.com/DataDog/datadog-operator/releases/download/v0.0.1/datadog-darwin-amd64.zip # TODO
sha256: # TODO
- uri: https://github.com/DataDog/datadog-operator/releases/download/INVALID_SET_ME/kubectl-datadog_INVALID_SET_ME_darwin_amd64.zip
sha256: INVALID_SET_ME
bin: kubectl-datadog
files:
- from: kubectl-datadog
Expand All @@ -22,3 +22,27 @@ spec:
matchLabels:
os: darwin
arch: amd64
- uri: https://github.com/DataDog/datadog-operator/releases/download/INVALID_SET_ME/kubectl-datadog_INVALID_SET_ME_linux_amd64.zip
sha256: INVALID_SET_ME
bin: kubectl-datadog
files:
- from: kubectl-datadog
to: .
- from: LICENSE
to: .
selector:
matchLabels:
os: linux
arch: amd64
- uri: https://github.com/DataDog/datadog-operator/releases/download/INVALID_SET_ME/kubectl-datadog_INVALID_SET_ME_windows_amd64.zip
sha256: INVALID_SET_ME
bin: kubectl-datadog.exe
files:
- from: kubectl-datadog.exe
to: .
- from: LICENSE
to: .
selector:
matchLabels:
os: windows
arch: amd64

0 comments on commit 9571dea

Please sign in to comment.