Don't use goreleaser
@@ -15,6 +15,27 @@ steps:
- name: docker
path: /var/run/docker.sock
+- name: github_binary_release
+ image: plugins/github-release
+ settings:
+ api_key:
+ from_secret: github_token
+ prerelease: true
+ checksum:
+ - sha256
+ checksum_file: CHECKSUMsum-amd64.txt
+ checksum_flatten: true
+ files:
+ - "dist/artifacts/*"
+ when:
+ instance:
+ - drone-publish.rancher.io
+ ref:
+ - refs/head/master
+ - refs/tags/*
+ event:
+ - tag
+
- name: docker-publish-agent
image: plugins/docker
settings:
@@ -75,6 +96,27 @@ steps:
- name: docker
path: /var/run/docker.sock
+- name: github_binary_release
+ image: plugins/github-release
+ settings:
+ api_key:
+ from_secret: github_token
+ prerelease: true
+ checksum:
+ - sha256
+ checksum_file: CHECKSUMsum-arm64.txt
+ checksum_flatten: true
+ files:
+ - "dist/artifacts/*"
+ when:
+ instance:
+ - drone-publish.rancher.io
+ ref:
+ - refs/head/master
+ - refs/tags/*
+ event:
+ - tag
+
- name: docker-publish-agent
image: plugins/docker
settings:
@@ -135,6 +177,27 @@ steps:
- name: docker
path: /var/run/docker.sock
+- name: github_binary_release
+ image: plugins/github-release
+ settings:
+ api_key:
+ from_secret: github_token
+ prerelease: true
+ checksum:
+ - sha256
+ checksum_file: CHECKSUMsum-arm.txt
+ checksum_flatten: true
+ files:
+ - "dist/artifacts/*"
+ when:
+ instance:
+ - drone-publish.rancher.io
+ ref:
+ - refs/head/master
+ - refs/tags/*
+ event:
+ - tag
+
- name: docker-publish-agent
image: plugins/docker
settings:
@@ -234,32 +297,3 @@ depends_on:
- amd64
- arm64
- arm
-
----
-kind: pipeline
-name: goreleaser
-
-platform:
- os: linux
- arch: amd64
-
-steps:
-- name: fetch
- image: docker:git
- commands:
- - git fetch --tags
-
-- name: release
- image: golang:1.13.4
- environment:
- GITHUB_TOKEN:
- from_secret: github_token
- commands:
- - curl -sL https://git.io/goreleaser | bash
- when:
- instance:
- - drone-publish.rancher.io
- ref:
- - refs/head/master
- - refs/tags/*
- event: tag
