From 69a7fc35d45d1dfd0044a7c0ba8bceb565cc8717 Mon Sep 17 00:00:00 2001 From: ci-reporunner Date: Tue, 4 Feb 2025 18:55:34 +0530 Subject: [PATCH] Update pipeline drone-s3-harness (#187) * Update pipeline drone-s3-harness * Update pipeline drone-s3-harness * Update go version --------- Co-authored-by: Archit Mallik --- .harness/harness.yaml | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/.harness/harness.yaml b/.harness/harness.yaml index 07d8d1d..c3e96d2 100644 --- a/.harness/harness.yaml +++ b/.harness/harness.yaml @@ -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/golangci-lint@v1.51.2 @@ -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,12 +278,6 @@ pipeline: caching: enabled: false paths: [] - platform: - os: Windows - arch: Amd64 - runtime: - type: Cloud - spec: {} execution: steps: - step: @@ -291,8 +285,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 @@ -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