Skip to content

Commit 9ed365a

Browse files
feat: [CI-16559]: golang version up to 1.23 and docker base image up
1 parent 41ccad3 commit 9ed365a

File tree

11 files changed

+103
-18
lines changed

11 files changed

+103
-18
lines changed

.drone.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ platform:
1212

1313
steps:
1414
- name: vet
15-
image: golang:1.22
15+
image: golang:1.23
1616
commands:
1717
- go vet ./...
1818
environment:
@@ -45,7 +45,7 @@ platform:
4545

4646
steps:
4747
- name: go build
48-
image: golang:1.22
48+
image: golang:1.23
4949
environment:
5050
CGO_ENABLED: 0
5151
commands:
@@ -87,7 +87,7 @@ platform:
8787

8888
steps:
8989
- name: go build
90-
image: golang:1.22
90+
image: golang:1.23
9191
environment:
9292
CGO_ENABLED: 0
9393
commands:
@@ -130,7 +130,7 @@ platform:
130130

131131
steps:
132132
- name: build-push
133-
image: golang:1.22
133+
image: golang:1.23
134134
commands:
135135
- 'go build -v -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -tags netgo -o release/linux/amd64/buildx-acr ./cmd/drone-buildx-acr'
136136
environment:
@@ -140,7 +140,7 @@ steps:
140140
exclude:
141141
- tag
142142
- name: build-tag
143-
image: golang:1.22
143+
image: golang:1.23
144144
commands:
145145
- 'go build -v -ldflags "-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}" -a -tags netgo -o release/linux/amd64/buildx-acr ./cmd/drone-buildx-acr'
146146
environment:
@@ -188,7 +188,7 @@ platform:
188188

189189
steps:
190190
- name: build-push
191-
image: golang:1.22
191+
image: golang:1.23
192192
commands:
193193
- 'go build -v -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -tags netgo -o release/linux/arm64/buildx-acr ./cmd/drone-buildx-acr'
194194
environment:
@@ -199,7 +199,7 @@ steps:
199199
- tag
200200

201201
- name: build-tag
202-
image: golang:1.22
202+
image: golang:1.23
203203
commands:
204204
- 'go build -v -ldflags "-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}" -a -tags netgo -o release/linux/arm64/buildx-acr ./cmd/drone-buildx-acr'
205205
environment:
@@ -279,7 +279,7 @@ pool:
279279
steps:
280280
- name: build
281281
pull: always
282-
image: golang:1.22
282+
image: golang:1.23
283283
commands:
284284
- GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -a -tags netgo -o release/drone-buildx-acr-linux-amd64 ./cmd/drone-buildx-acr
285285
- GOOS=linux GOARCH=arm64 go build -ldflags "-s -w" -a -tags netgo -o release/drone-buildx-acr-linux-arm64 ./cmd/drone-buildx-acr

.harness/harness.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pipeline:
3636
identifier: Vet
3737
spec:
3838
connectorRef: Plugins_Docker_Hub_Connector
39-
image: golang:1.22
39+
image: golang:1.23
4040
shell: Sh
4141
command: go vet ./...
4242
variables:
@@ -64,7 +64,7 @@ pipeline:
6464
identifier: Build
6565
spec:
6666
connectorRef: Plugins_Docker_Hub_Connector
67-
image: golang:1.22
67+
image: golang:1.23
6868
shell: Sh
6969
command: |-
7070
# force go modules
@@ -152,7 +152,7 @@ pipeline:
152152
identifier: Build
153153
spec:
154154
connectorRef: Plugins_Docker_Hub_Connector
155-
image: golang:1.22
155+
image: golang:1.23
156156
shell: Sh
157157
command: |-
158158
# force go modules
@@ -231,7 +231,7 @@ pipeline:
231231
identifier: BuildPush
232232
spec:
233233
connectorRef: Plugins_Docker_Hub_Connector
234-
image: golang:1.22
234+
image: golang:1.23
235235
shell: Sh
236236
command: |-
237237
# force go modules
@@ -256,7 +256,7 @@ pipeline:
256256
identifier: BuildTag
257257
spec:
258258
connectorRef: Plugins_Docker_Hub_Connector
259-
image: golang:1.22
259+
image: golang:1.23
260260
shell: Sh
261261
command: |-
262262
# force go modules
@@ -338,7 +338,7 @@ pipeline:
338338
identifier: Build_Push
339339
spec:
340340
connectorRef: Plugins_Docker_Hub_Connector
341-
image: golang:1.22
341+
image: golang:1.23
342342
shell: Sh
343343
command: |-
344344
# force go modules
@@ -363,7 +363,7 @@ pipeline:
363363
identifier: Build_Tag
364364
spec:
365365
connectorRef: Plugins_Docker_Hub_Connector
366-
image: golang:1.22
366+
image: golang:1.23
367367
shell: Sh
368368
command: |-
369369
# force go modules
@@ -461,7 +461,7 @@ pipeline:
461461
identifier: Build
462462
spec:
463463
connectorRef: Plugins_Docker_Hub_Connector
464-
image: golang:1.22
464+
image: golang:1.23
465465
shell: Sh
466466
command: |-
467467
GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -a -tags netgo -o release/drone-buildx-acr-linux-amd64 ./cmd/drone-buildx-acr

.idea/checkstyle-idea.xml

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/drone-buildx-acr.iml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/workspace.xml

Lines changed: 41 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docker/acr/Dockerfile.linux.amd64

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM plugins/buildx:linux-amd64
1+
FROM ebtasamfaridy/plugins-buildx:3
22

33
ADD release/linux/amd64/buildx-acr /bin/
44
ENTRYPOINT ["/usr/local/bin/dockerd-entrypoint.sh", "/bin/buildx-acr"]

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/drone-plugins/drone-buildx-acr
22

3-
go 1.22
3+
go 1.23
44

55
toolchain go1.22.0
66

0 commit comments

Comments
 (0)