fortlit/.drone.yml
Marvin Steadfast 7733b81a31
Some checks reported errors
continuous-integration/drone/tag Build was killed
fixes checksums
2020-01-07 13:40:07 +01:00

105 lines
1.7 KiB
YAML

---
kind: pipeline
type: docker
name: linux-amd64
platform:
arch: amd64
os: linux
steps:
- name: test
image: golang:1.13.5
commands:
- go test ./...
- name: build
image: golang:1.13.5
commands:
- go build -o fortlit-$(uname -m)
- ls -la
environment:
GOARCH: amd64
GOOS: linux
- name: publish
image: plugins/github-release
settings:
api_key:
from_secret: github_token
files:
- fortlit-*
checksum:
- md5
- sha1
- sha256
- sha512
- adler32
- crc32
when:
event: tag
---
kind: pipeline
type: docker
name: linux-arm64
platform:
arch: arm64
os: linux
steps:
- name: build
image: golang:1.13.5
commands:
- go build -o fortlit-$(uname -m)
- ls -la
environment:
GOARCH: arm64
GOOS: linux
- name: publish
image: plugins/github-release
settings:
api_key:
from_secret: github_token
files:
- fortlit-*
checksum:
- md5
- sha1
- sha256
- sha512
- adler32
- crc32
when:
event: tag
depends_on:
- linux-amd64
---
kind: pipeline
type: docker
name: linux-arm
platform:
arch: arm
os: linux
steps:
- name: build
image: golang:1.13.5
commands:
- go build -o fortlit-$(uname -m)
- ls -la
environment:
GOARCH: arm
GOOS: linux
- name: publish
image: plugins/github-release
settings:
api_key:
from_secret: github_token
files:
- fortlit-*
checksum:
- md5
- sha1
- sha256
- sha512
- adler32
- crc32
when:
event: tag
depends_on:
- linux-amd64