You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
698 B
38 lines
698 B
kind: pipeline |
|
type: docker |
|
name: default |
|
|
|
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 |
|
image: golang |
|
environment: |
|
DISCORD_TOKEN: |
|
from_secret: discord_token |
|
commands: |
|
- ./Phasmobot -t $${DISCORD_TOKEN} |
|
when: |
|
branch: |
|
- deploy |
|
|
|
- name: gitea_release |
|
image: plugins/gitea-release |
|
settings: |
|
base_url: https://git.nightmare.haus |
|
api_key: |
|
from_secret: gitea_token |
|
files: ./Phasmobot |
|
checksum: |
|
- md5 |
|
- sha1 |
|
- sha256 |
|
- sha512 |
|
- adler32 |
|
- crc32 |
|
when: |
|
event: [tag]
|
|
|