chore(): Rearranging the pipeline to build a release properly
This commit is contained in:
parent
9939b75bdf
commit
96f4ca7e0b
1 changed files with 12 additions and 17 deletions
29
.drone.yml
29
.drone.yml
|
@ -27,7 +27,7 @@ steps:
|
|||
GOARCH: amd64
|
||||
commands:
|
||||
- go get
|
||||
- go build -o cmw-linux-amd64
|
||||
- go build -o cmw-linux-amd64-${DRONE_COMMIT_SHA:0:8}
|
||||
depends_on:
|
||||
- prepare
|
||||
|
||||
|
@ -38,7 +38,7 @@ steps:
|
|||
GOARCH: amd64
|
||||
commands:
|
||||
- go get
|
||||
- go build -o cmw-darwin-amd64
|
||||
- go build -o cmw-darwin-amd64-${DRONE_COMMIT_SHA:0:8}
|
||||
depends_on:
|
||||
- prepare
|
||||
|
||||
|
@ -49,7 +49,7 @@ steps:
|
|||
GOARCH: amd64
|
||||
commands:
|
||||
- go get
|
||||
- go build -o cmw-windows-amd64.exe
|
||||
- go build -o cmw-windows-amd64-${DRONE_COMMIT_SHA:0:8}.exe
|
||||
depends_on:
|
||||
- prepare
|
||||
|
||||
|
@ -60,7 +60,7 @@ steps:
|
|||
GOARCH: arm64
|
||||
commands:
|
||||
- go get
|
||||
- go build -o cmw-linux-arm64
|
||||
- go build -o cmw-linux-arm64-${DRONE_COMMIT_SHA:0:8}
|
||||
depends_on:
|
||||
- prepare
|
||||
|
||||
|
@ -71,17 +71,13 @@ steps:
|
|||
GOARCH: arm64
|
||||
commands:
|
||||
- go get
|
||||
- go build -o cmw-darwin-arm64
|
||||
- go build -o cmw-darwin-arm64-${DRONE_COMMIT_SHA:0:8}
|
||||
depends_on:
|
||||
- prepare
|
||||
|
||||
depends_on:
|
||||
- test
|
||||
|
||||
trigger:
|
||||
event:
|
||||
exclude:
|
||||
- tag
|
||||
---
|
||||
kind: pipeline
|
||||
name: build
|
||||
|
@ -99,7 +95,7 @@ steps:
|
|||
GOARCH: amd64
|
||||
commands:
|
||||
- go get
|
||||
- go build -o bin/cmw-linux-amd64
|
||||
- go build -o bin/cmw-linux-amd64-${DRONE_TAG}
|
||||
depends_on:
|
||||
- prepare
|
||||
|
||||
|
@ -110,7 +106,7 @@ steps:
|
|||
GOARCH: amd64
|
||||
commands:
|
||||
- go get
|
||||
- go build -o bin/cmw-darwin-amd64
|
||||
- go build -o bin/cmw-darwin-amd64-${DRONE_TAG}
|
||||
depends_on:
|
||||
- prepare
|
||||
|
||||
|
@ -121,7 +117,7 @@ steps:
|
|||
GOARCH: amd64
|
||||
commands:
|
||||
- go get
|
||||
- go build -o bin/cmw-windows-amd64.exe
|
||||
- go build -o bin/cmw-windows-amd64-${DRONE_TAG}.exe
|
||||
depends_on:
|
||||
- prepare
|
||||
|
||||
|
@ -132,7 +128,7 @@ steps:
|
|||
GOARCH: arm64
|
||||
commands:
|
||||
- go get
|
||||
- go build -o bin/cmw-linux-arm64
|
||||
- go build -o bin/cmw-linux-arm64-${DRONE_TAG}
|
||||
depends_on:
|
||||
- prepare
|
||||
|
||||
|
@ -143,16 +139,15 @@ steps:
|
|||
GOARCH: arm64
|
||||
commands:
|
||||
- go get
|
||||
- go build -o bin/cmw-darwin-arm64
|
||||
- go build -o bin/cmw-darwin-arm64-${DRONE_TAG}
|
||||
depends_on:
|
||||
- prepare
|
||||
|
||||
- name: gitea_release
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
title: Draft ${DRONE_COMMIT_SHA:0:8}
|
||||
draft: true
|
||||
note: Draft release of ${DRONE_COMMIT_SHA:0:8}
|
||||
title: Release ${DRONE_TAG}
|
||||
note: This is the cmw release of version ${DRONE_TAG}
|
||||
api_key:
|
||||
from_secret:
|
||||
registry_password
|
||||
|
|
Loading…
Reference in a new issue