Skip to content

Commit

Permalink
Merge pull request #20 from sahithibanda01/CI-14845_fix
Browse files Browse the repository at this point in the history
fix: [CI-14845]: fix the go image
  • Loading branch information
raghavharness authored Dec 2, 2024
2 parents 28dc0d0 + 1276b74 commit ca383ec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
14 changes: 7 additions & 7 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ platform:

steps:
- name: go build
image: golang:1.19
image: golang:1.22
environment:
CGO_ENABLED: 0
commands:
Expand Down Expand Up @@ -97,7 +97,7 @@ platform:

steps:
- name: go build
image: golang:1.19
image: golang:1.22
environment:
CGO_ENABLED: 0
commands:
Expand Down Expand Up @@ -140,7 +140,7 @@ platform:

steps:
- name: build-push
image: golang:1.19
image: golang:1.22
commands:
- 'go build -v -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -tags netgo -o release/linux/amd64/buildx-ecr ./cmd/drone-buildx-ecr'
environment:
Expand All @@ -150,7 +150,7 @@ steps:
exclude:
- tag
- name: build-tag
image: golang:1.19
image: golang:1.22
commands:
- 'go build -v -ldflags "-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}" -a -tags netgo -o release/linux/amd64/buildx-ecr ./cmd/drone-buildx-ecr'
environment:
Expand Down Expand Up @@ -198,7 +198,7 @@ platform:

steps:
- name: build-push
image: golang:1.19
image: golang:1.22
commands:
- 'go build -v -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -tags netgo -o release/linux/arm64/buildx-ecr ./cmd/drone-buildx-ecr'
environment:
Expand All @@ -209,7 +209,7 @@ steps:
- tag

- name: build-tag
image: golang:1.19
image: golang:1.22
commands:
- 'go build -v -ldflags "-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}" -a -tags netgo -o release/linux/arm64/buildx-ecr ./cmd/drone-buildx-ecr'
environment:
Expand Down Expand Up @@ -290,7 +290,7 @@ pool:
steps:
- name: build
pull: always
image: golang:1.19
image: golang:1.22
commands:
- GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -a -tags netgo -o release/drone-buildx-ecr-linux-amd64 ./cmd/drone-buildx-ecr
- GOOS=linux GOARCH=arm64 go build -ldflags "-s -w" -a -tags netgo -o release/drone-buildx-ecr-linux-arm64 ./cmd/drone-buildx-ecr
Expand Down
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@ require (

go 1.22

toolchain go1.22.9

0 comments on commit ca383ec

Please sign in to comment.