chore(): Adds a pipeline based on tagging
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is failing

This commit is contained in:
Elia el Lazkani 2023-07-02 21:37:43 +02:00
parent 00d1ef76f3
commit 9939b75bdf

View file

@ -12,6 +12,78 @@ steps:
--- ---
kind: pipeline kind: pipeline
name: test-build
steps:
- name: prepare
image: golang
commands:
- go version
- name: build-linux-amd64
image: golang
environment:
GOOS: linux
GOARCH: amd64
commands:
- go get
- go build -o cmw-linux-amd64
depends_on:
- prepare
- name: build-darwin-amd64
image: golang
environment:
GOOS: darwin
GOARCH: amd64
commands:
- go get
- go build -o cmw-darwin-amd64
depends_on:
- prepare
- name: build-windows-amd64
image: golang
environment:
GOOS: windows
GOARCH: amd64
commands:
- go get
- go build -o cmw-windows-amd64.exe
depends_on:
- prepare
- name: build-linux-arm64
image: golang
environment:
GOOS: linux
GOARCH: arm64
commands:
- go get
- go build -o cmw-linux-arm64
depends_on:
- prepare
- name: build-darwin-arm64
image: golang
environment:
GOOS: darwin
GOARCH: arm64
commands:
- go get
- go build -o cmw-darwin-arm64
depends_on:
- prepare
depends_on:
- test
trigger:
event:
exclude:
- tag
---
kind: pipeline
name: build name: build
steps: steps:
@ -49,7 +121,7 @@ steps:
GOARCH: amd64 GOARCH: amd64
commands: commands:
- go get - go get
- go build -o bin/cmw-windows-amd64 - go build -o bin/cmw-windows-amd64.exe
depends_on: depends_on:
- prepare - prepare
@ -94,4 +166,8 @@ steps:
- build-darwin-arm64 - build-darwin-arm64
depends_on: depends_on:
- test - test-build
trigger:
event:
- tag