1 Commits
Test ... deploy

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