Skip to content

Commit

Permalink
776 - build deb artifacts (#860)
Browse files Browse the repository at this point in the history
* build deb artifacts in go releaser

* move test build go releaser to root makefile
  • Loading branch information
Kyle Hodgetts authored Oct 11, 2022
1 parent 9de0964 commit 1e355b2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
11 changes: 9 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ before:
hooks:
- go mod tidy
- go mod verify
- go generate
- go generate
builds:
- id: kusk-gateway
skip: true
Expand Down Expand Up @@ -61,4 +61,11 @@ brews:
name: kusk
install: bin.install "kusk"
ids:
- kusk
- kusk

nfpms:
- maintainer: Kusk Team
license: "MIT"
formats:
- deb
description: Kusk - Make your OpenAPI definition the source of truth for API resources in cluster
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -232,3 +232,8 @@ install-deps:
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2.0
@echo "[INFO]: Installing protobuf go generation plugin."
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.27.1

# `build-goreleaser` is just for local testing.
.PHONY: build-goreleaser
build-goreleaser:
VERSION="${VERSION}" TELEMETRY_TOKEN="${TELEMETRY_TOKEN}" goreleaser release --rm-dist --skip-publish --skip-validate
5 changes: 0 additions & 5 deletions cmd/kusk/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,3 @@ manifests: install-deps
.PHONY: build
build: manifests
go build -o ./kusk -ldflags="${LD_FLAGS}" ./main.go

# `build-goreleaser` is just for local testing.
.PHONY: build-goreleaser
build-goreleaser:
VERSION="${VERSION}" TELEMETRY_TOKEN="${TELEMETRY_TOKEN}" goreleaser release --rm-dist --skip-publish --skip-validate

0 comments on commit 1e355b2

Please sign in to comment.