chore(): Adds checksum to the releases for verification
This commit is contained in:
parent
e3817dfa47
commit
8c2797cc82
1 changed files with 23 additions and 8 deletions
27
.drone.yml
27
.drone.yml
|
@ -5,11 +5,15 @@ name: test
|
|||
steps:
|
||||
- name: test-code
|
||||
image: golang
|
||||
environment:
|
||||
commands:
|
||||
- go get
|
||||
- go test
|
||||
|
||||
- name: run-code
|
||||
image: golang
|
||||
commands:
|
||||
- go get
|
||||
- go run .
|
||||
---
|
||||
kind: pipeline
|
||||
name: test-build
|
||||
|
@ -143,6 +147,21 @@ steps:
|
|||
depends_on:
|
||||
- prepare
|
||||
|
||||
- name: generate-checksum
|
||||
image: golang
|
||||
commands:
|
||||
- cd bin
|
||||
- md5sum * > ../md5sums.txt
|
||||
- sha512sum * > ../sha512sums.txt
|
||||
- cp ../md5sums.txt .
|
||||
- cp ../sha512sums.txt .
|
||||
depends_on:
|
||||
- build-linux-amd64
|
||||
- build-darwin-amd64
|
||||
- build-windows-amd64
|
||||
- build-linux-arm64
|
||||
- build-darwin-arm64
|
||||
|
||||
- name: gitea_release
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
|
@ -154,11 +173,7 @@ steps:
|
|||
base_url: https://scm.project42.io
|
||||
files: bin/*
|
||||
depends_on:
|
||||
- build-linux-amd64
|
||||
- build-darwin-amd64
|
||||
- build-windows-amd64
|
||||
- build-linux-arm64
|
||||
- build-darwin-arm64
|
||||
- generate-checksum
|
||||
|
||||
depends_on:
|
||||
- test-build
|
||||
|
|
Loading…
Reference in a new issue