Add git commit to build
This commit is contained in:
@ -8,7 +8,7 @@ steps:
|
||||
commands:
|
||||
- go get github.com/bwmarrin/discordgo
|
||||
- go vet -v
|
||||
- go build
|
||||
- go build -ldflags "-X main.gitCommit=$(git rev-parse --short HEAD)"
|
||||
- name: Run
|
||||
image: golang
|
||||
environment:
|
||||
|
||||
Reference in New Issue
Block a user