Skip to content

Commit

Permalink
chore: build and goreleaser updates
Browse files Browse the repository at this point in the history
  • Loading branch information
kameshsampath committed Feb 1, 2023
1 parent 379579d commit 53e663e
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = false
insert_final_newline = false
insert_final_newline = false
5 changes: 1 addition & 4 deletions .envrc
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
export TUTORIAL_HOME="$PWD"
export KUBECONFIG="$TUTORIAL_HOME/.kube/config"
dotenv_if_exists
source_env_if_exists .envrc.local
dotenv_if_exists .env
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ dist
.direnv
.env*
!.env.example
cosign*
image-refs.txt
!/bin/*.sh
cosign.pub
cosign.key
.kube
goreleaser
35 changes: 35 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
project_name: go-hello-world
before:
hooks:
- go mod tidy
builds:
- id: go-hello-world
asmflags:
- all=-trimpath={{.Env.GOPATH}}
ldflags:
- -s
- -w
- -X main.Version={{.Tag}}
- -extldflags "-static"
goos:
- linux
- darwin
goarch:
- amd64
- arm64
kos:
- id: go-hello-world-ko
build: go-hello-world
bare: true
tags:
- latest
- '{{.Tag}}'
platforms:
- linux/amd64
- linux/arm64
# since its a demo, setting the release to be draft/pre-release always
release:
mode: append
prerelease: auto
draft: true
replace_existing_draft: true
27 changes: 0 additions & 27 deletions scripts/rename.py

This file was deleted.

0 comments on commit 53e663e

Please sign in to comment.