-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update pipeline drone-s3-harness (#187)
* Update pipeline drone-s3-harness * Update pipeline drone-s3-harness * Update go version --------- Co-authored-by: Archit Mallik <[email protected]>
- Loading branch information
1 parent
278a072
commit 69a7fc3
Showing
1 changed file
with
18 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ pipeline: | |
identifier: lint | ||
spec: | ||
connectorRef: Plugins_Docker_Hub_Connector | ||
image: golang:1.22.4 | ||
image: golang:1.22.7 | ||
shell: Sh | ||
command: |- | ||
go install github.com/golangci/golangci-lint/cmd/[email protected] | ||
|
@@ -48,7 +48,7 @@ pipeline: | |
identifier: Run_1 | ||
spec: | ||
connectorRef: Plugins_Docker_Hub_Connector | ||
image: golang:1.22.4 | ||
image: golang:1.22.7 | ||
shell: Sh | ||
command: go test -cover ./... | ||
- parallel: | ||
|
@@ -76,7 +76,7 @@ pipeline: | |
identifier: Run_1 | ||
spec: | ||
connectorRef: Plugins_Docker_Hub_Connector | ||
image: golang:1.22.4 | ||
image: golang:1.22.7 | ||
shell: Sh | ||
command: |- | ||
# force go modules | ||
|
@@ -150,7 +150,7 @@ pipeline: | |
name: Build Binary | ||
spec: | ||
connectorRef: account.harnessImage | ||
image: golang:1.22.4 | ||
image: golang:1.22.7 | ||
shell: Sh | ||
command: |- | ||
# force go modules | ||
|
@@ -220,8 +220,8 @@ pipeline: | |
type: Run | ||
name: Build Binary | ||
spec: | ||
connectorRef: account.harnessImage | ||
image: golang:1.22.4 | ||
connectorRef: Plugins_Docker_Hub_Connector | ||
image: golang:1.22.7 | ||
shell: Sh | ||
command: |- | ||
# force go modules | ||
|
@@ -278,21 +278,15 @@ pipeline: | |
caching: | ||
enabled: false | ||
paths: [] | ||
platform: | ||
os: Windows | ||
arch: Amd64 | ||
runtime: | ||
type: Cloud | ||
spec: {} | ||
execution: | ||
steps: | ||
- step: | ||
identifier: build_amd64ltsc2022 | ||
type: Run | ||
name: Build Binary | ||
spec: | ||
connectorRef: account.harnessImage | ||
image: golang:1.22.4 | ||
connectorRef: Plugins_Docker_Hub_Connector | ||
image: golang:1.22.7 | ||
shell: Sh | ||
command: |- | ||
# force go modules | ||
|
@@ -339,6 +333,15 @@ pipeline: | |
when: | ||
stageStatus: Success | ||
condition: <+codebase.build.type> == "branch" | ||
infrastructure: | ||
type: VM | ||
spec: | ||
type: Pool | ||
spec: | ||
poolName: windows-2019 | ||
os: Windows | ||
delegateSelectors: | ||
- windows-vm | ||
- stage: | ||
name: Manifest and Release | ||
identifier: Manifest_and_Release | ||
|
@@ -380,7 +383,7 @@ pipeline: | |
identifier: Run_1 | ||
spec: | ||
connectorRef: Plugins_Docker_Hub_Connector | ||
image: golang:1.22.4 | ||
image: golang:1.22.7 | ||
shell: Sh | ||
command: |- | ||
GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -a -tags netgo -o release/drone-s3-linux-amd64 | ||
|