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