1 Commits

Author SHA1 Message Date
368e7030f5 Merge pull request 'Add git commit to build' (#1) from master into deploy
Some checks reported errors
continuous-integration/drone/push Build was killed
Reviewed-on: #1
2021-07-21 22:17:30 -04:00

View File

@ -6,6 +6,7 @@ steps:
- name: Build
image: golang
commands:
- go get github.com/bwmarrin/discordgo
- go vet -v
- go build -ldflags "-X main.gitCommit=$(git rev-parse --short HEAD)"
- name: Run
@ -16,10 +17,8 @@ steps:
commands:
- ./Phasmobot -t $${DISCORD_TOKEN}
when:
event:
- promote
target:
- prod
branch:
- deploy
- name: gitea_release
image: plugins/gitea-release