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
|
GOARCH: amd64
|
||||||
commands:
|
commands:
|
||||||
- go get
|
- go get
|
||||||
- go build -o cmw-linux-amd64
|
- go build -o cmw-linux-amd64-${DRONE_COMMIT_SHA:0:8}
|
||||||
depends_on:
|
depends_on:
|
||||||
- prepare
|
- prepare
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ steps:
|
||||||
GOARCH: amd64
|
GOARCH: amd64
|
||||||
commands:
|
commands:
|
||||||
- go get
|
- go get
|
||||||
- go build -o cmw-darwin-amd64
|
- go build -o cmw-darwin-amd64-${DRONE_COMMIT_SHA:0:8}
|
||||||
depends_on:
|
depends_on:
|
||||||
- prepare
|
- prepare
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ steps:
|
||||||
GOARCH: amd64
|
GOARCH: amd64
|
||||||
commands:
|
commands:
|
||||||
- go get
|
- go get
|
||||||
- go build -o cmw-windows-amd64.exe
|
- go build -o cmw-windows-amd64-${DRONE_COMMIT_SHA:0:8}.exe
|
||||||
depends_on:
|
depends_on:
|
||||||
- prepare
|
- prepare
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ steps:
|
||||||
GOARCH: arm64
|
GOARCH: arm64
|
||||||
commands:
|
commands:
|
||||||
- go get
|
- go get
|
||||||
- go build -o cmw-linux-arm64
|
- go build -o cmw-linux-arm64-${DRONE_COMMIT_SHA:0:8}
|
||||||
depends_on:
|
depends_on:
|
||||||
- prepare
|
- prepare
|
||||||
|
|
||||||
|
@ -71,17 +71,13 @@ steps:
|
||||||
GOARCH: arm64
|
GOARCH: arm64
|
||||||
commands:
|
commands:
|
||||||
- go get
|
- go get
|
||||||
- go build -o cmw-darwin-arm64
|
- go build -o cmw-darwin-arm64-${DRONE_COMMIT_SHA:0:8}
|
||||||
depends_on:
|
depends_on:
|
||||||
- prepare
|
- prepare
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- test
|
- test
|
||||||
|
|
||||||
trigger:
|
|
||||||
event:
|
|
||||||
exclude:
|
|
||||||
- tag
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: build
|
name: build
|
||||||
|
@ -99,7 +95,7 @@ steps:
|
||||||
GOARCH: amd64
|
GOARCH: amd64
|
||||||
commands:
|
commands:
|
||||||
- go get
|
- go get
|
||||||
- go build -o bin/cmw-linux-amd64
|
- go build -o bin/cmw-linux-amd64-${DRONE_TAG}
|
||||||
depends_on:
|
depends_on:
|
||||||
- prepare
|
- prepare
|
||||||
|
|
||||||
|
@ -110,7 +106,7 @@ steps:
|
||||||
GOARCH: amd64
|
GOARCH: amd64
|
||||||
commands:
|
commands:
|
||||||
- go get
|
- go get
|
||||||
- go build -o bin/cmw-darwin-amd64
|
- go build -o bin/cmw-darwin-amd64-${DRONE_TAG}
|
||||||
depends_on:
|
depends_on:
|
||||||
- prepare
|
- prepare
|
||||||
|
|
||||||
|
@ -121,7 +117,7 @@ steps:
|
||||||
GOARCH: amd64
|
GOARCH: amd64
|
||||||
commands:
|
commands:
|
||||||
- go get
|
- go get
|
||||||
- go build -o bin/cmw-windows-amd64.exe
|
- go build -o bin/cmw-windows-amd64-${DRONE_TAG}.exe
|
||||||
depends_on:
|
depends_on:
|
||||||
- prepare
|
- prepare
|
||||||
|
|
||||||
|
@ -132,7 +128,7 @@ steps:
|
||||||
GOARCH: arm64
|
GOARCH: arm64
|
||||||
commands:
|
commands:
|
||||||
- go get
|
- go get
|
||||||
- go build -o bin/cmw-linux-arm64
|
- go build -o bin/cmw-linux-arm64-${DRONE_TAG}
|
||||||
depends_on:
|
depends_on:
|
||||||
- prepare
|
- prepare
|
||||||
|
|
||||||
|
@ -143,16 +139,15 @@ steps:
|
||||||
GOARCH: arm64
|
GOARCH: arm64
|
||||||
commands:
|
commands:
|
||||||
- go get
|
- go get
|
||||||
- go build -o bin/cmw-darwin-arm64
|
- go build -o bin/cmw-darwin-arm64-${DRONE_TAG}
|
||||||
depends_on:
|
depends_on:
|
||||||
- prepare
|
- prepare
|
||||||
|
|
||||||
- name: gitea_release
|
- name: gitea_release
|
||||||
image: plugins/gitea-release
|
image: plugins/gitea-release
|
||||||
settings:
|
settings:
|
||||||
title: Draft ${DRONE_COMMIT_SHA:0:8}
|
title: Release ${DRONE_TAG}
|
||||||
draft: true
|
note: This is the cmw release of version ${DRONE_TAG}
|
||||||
note: Draft release of ${DRONE_COMMIT_SHA:0:8}
|
|
||||||
api_key:
|
api_key:
|
||||||
from_secret:
|
from_secret:
|
||||||
registry_password
|
registry_password
|
||||||
|
|
Loading…
Reference in a new issue