Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(release): fetch tags first #201

Merged
merged 1 commit into from
Feb 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .drone/drone.jsonnet
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local golang = 'golang:1.12';
local golang = 'golang:1.13';

local volumes = [{ name: 'gopath', temp: {} }];
local mounts = [{ name: 'gopath', path: '/go' }];
Expand Down Expand Up @@ -65,6 +65,7 @@ local docker(arch) = pipeline('docker-' + arch) {

pipeline('release') {
steps: [
go('fetch-tags', ['git fetch origin --tags']),
make('cross'),
{
name: 'publish',
Expand Down
22 changes: 15 additions & 7 deletions .drone/drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ platform:

steps:
- name: download
image: golang:1.12
image: golang:1.13
commands:
- go mod download
volumes:
- name: gopath
path: /go

- name: lint
image: golang:1.12
image: golang:1.13
commands:
- make lint
volumes:
Expand All @@ -26,7 +26,7 @@ steps:
- download

- name: test
image: golang:1.12
image: golang:1.13
commands:
- make test
volumes:
Expand All @@ -48,8 +48,16 @@ platform:
arch: amd64

steps:
- name: fetch-tags
image: golang:1.13
commands:
- git fetch origin --tags
volumes:
- name: gopath
path: /go

- name: cross
image: golang:1.12
image: golang:1.13
commands:
- make cross
volumes:
Expand Down Expand Up @@ -86,7 +94,7 @@ platform:

steps:
- name: static
image: golang:1.12
image: golang:1.13
commands:
- make static
volumes:
Expand Down Expand Up @@ -127,7 +135,7 @@ platform:

steps:
- name: static
image: golang:1.12
image: golang:1.13
commands:
- make static
volumes:
Expand Down Expand Up @@ -168,7 +176,7 @@ platform:

steps:
- name: static
image: golang:1.12
image: golang:1.13
commands:
- make static
volumes:
Expand Down