Skip to content

Commit

Permalink
Merge pull request #38 from harness/ci-9951-4
Browse files Browse the repository at this point in the history
upgrade go version to 1.21
  • Loading branch information
TP Honey authored Nov 16, 2023
2 parents d685dba + 1be2eec commit d6c826e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pool:

steps:
- name: build
image: golang:1.20
image: golang:1.21
commands:
- go test ./...
- sh scripts/build.sh
Expand All @@ -27,7 +27,7 @@ platform:

steps:
- name: build-push
image: golang:1.20
image: golang:1.21
commands:
- 'go build -v -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -o release/linux/amd64/plugin'
environment:
Expand All @@ -38,7 +38,7 @@ steps:
- tag

- name: build-tag
image: golang:1.20
image: golang:1.21
commands:
- 'go build -v -ldflags "-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}" -a -o release/linux/amd64/plugin'
environment:
Expand Down Expand Up @@ -85,7 +85,7 @@ platform:

steps:
- name: build-push
image: golang:1.20
image: golang:1.21
commands:
- 'go build -v -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -o release/linux/arm64/plugin'
environment:
Expand All @@ -96,7 +96,7 @@ steps:
- tag

- name: build-tag
image: golang:1.20
image: golang:1.21
commands:
- 'go build -v -ldflags "-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}" -a -o release/linux/arm64/plugin'
environment:
Expand Down Expand Up @@ -143,7 +143,7 @@ platform:

steps:
- name: build-push
image: golang:1.20
image: golang:1.21
commands:
- 'go build -v -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -o release/windows/amd64/plugin'
environment:
Expand All @@ -153,7 +153,7 @@ steps:
exclude:
- tag
- name: build-tag
image: golang:1.20
image: golang:1.21
commands:
- 'go build -v -ldflags "-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}" -a -o release/windows/amd64/plugin'
environment:
Expand Down

0 comments on commit d6c826e

Please sign in to comment.