Skip to content

Commit be7bda4

Browse files
rutvijmehta-harnessTP Honey
andauthored
Add support for AAD auth for docker-acr (#395)
* Add support for AAD auth for docker-acr * Update go version --------- Co-authored-by: TP Honey <[email protected]>
1 parent 025dfb0 commit be7bda4

File tree

6 files changed

+316
-68
lines changed

6 files changed

+316
-68
lines changed

.drone.yml

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

1313
steps:
1414
- name: vet
15-
image: golang:1.17
15+
image: golang:1.20
1616
commands:
1717
- go vet ./...
1818
environment:
@@ -22,7 +22,7 @@ steps:
2222
path: /go
2323

2424
- name: test
25-
image: golang:1.17
25+
image: golang:1.20
2626
commands:
2727
- go test -cover ./...
2828
environment:
@@ -55,7 +55,7 @@ platform:
5555

5656
steps:
5757
- name: go build
58-
image: golang:1.17
58+
image: golang:1.20
5959
environment:
6060
CGO_ENABLED: 0
6161
commands:
@@ -146,7 +146,7 @@ platform:
146146

147147
steps:
148148
- name: go build
149-
image: golang:1.17
149+
image: golang:1.20
150150
environment:
151151
CGO_ENABLED: 0
152152
commands:
@@ -234,7 +234,7 @@ platform:
234234

235235
steps:
236236
- name: build-push
237-
image: golang:1.17
237+
image: golang:1.20
238238
commands:
239239
- 'go build -v -ldflags "-X main.version=${DRONE_COMMIT_SHA:0:8}" -a -tags netgo -o release/linux/amd64/drone-docker ./cmd/drone-docker'
240240
environment:
@@ -245,7 +245,7 @@ steps:
245245
- tag
246246

247247
- name: build-tag
248-
image: golang:1.17
248+
image: golang:1.20
249249
commands:
250250
- 'go build -v -ldflags "-X main.version=${DRONE_TAG##v}" -a -tags netgo -o release/linux/amd64/drone-docker ./cmd/drone-docker'
251251
environment:
@@ -255,7 +255,7 @@ steps:
255255
- tag
256256

257257
- name: executable
258-
image: golang:1.17
258+
image: golang:1.20
259259
commands:
260260
- ./release/linux/amd64/drone-docker --help
261261

@@ -299,7 +299,7 @@ platform:
299299

300300
steps:
301301
- name: build-push
302-
image: golang:1.17
302+
image: golang:1.20
303303
commands:
304304
- 'go build -v -ldflags "-X main.version=${DRONE_COMMIT_SHA:0:8}" -a -tags netgo -o release/linux/arm64/drone-docker ./cmd/drone-docker'
305305
environment:
@@ -310,7 +310,7 @@ steps:
310310
- tag
311311

312312
- name: build-tag
313-
image: golang:1.17
313+
image: golang:1.20
314314
commands:
315315
- 'go build -v -ldflags "-X main.version=${DRONE_TAG##v}" -a -tags netgo -o release/linux/arm64/drone-docker ./cmd/drone-docker'
316316
environment:
@@ -320,7 +320,7 @@ steps:
320320
- tag
321321

322322
- name: executable
323-
image: golang:1.17
323+
image: golang:1.20
324324
commands:
325325
- ./release/linux/arm64/drone-docker --help
326326

@@ -399,7 +399,7 @@ platform:
399399

400400
steps:
401401
- name: build-push
402-
image: golang:1.17
402+
image: golang:1.20
403403
commands:
404404
- 'go build -v -ldflags "-X main.version=${DRONE_COMMIT_SHA:0:8}" -a -tags netgo -o release/linux/amd64/drone-gcr ./cmd/drone-gcr'
405405
environment:
@@ -410,7 +410,7 @@ steps:
410410
- tag
411411

412412
- name: build-tag
413-
image: golang:1.17
413+
image: golang:1.20
414414
commands:
415415
- 'go build -v -ldflags "-X main.version=${DRONE_TAG##v}" -a -tags netgo -o release/linux/amd64/drone-gcr ./cmd/drone-gcr'
416416
environment:
@@ -459,7 +459,7 @@ platform:
459459

460460
steps:
461461
- name: build-push
462-
image: golang:1.17
462+
image: golang:1.20
463463
commands:
464464
- 'go build -v -ldflags "-X main.version=${DRONE_COMMIT_SHA:0:8}" -a -tags netgo -o release/linux/arm64/drone-gcr ./cmd/drone-gcr'
465465
environment:
@@ -470,7 +470,7 @@ steps:
470470
- tag
471471

472472
- name: build-tag
473-
image: golang:1.17
473+
image: golang:1.20
474474
commands:
475475
- 'go build -v -ldflags "-X main.version=${DRONE_TAG##v}" -a -tags netgo -o release/linux/arm64/drone-gcr ./cmd/drone-gcr'
476476
environment:
@@ -554,7 +554,7 @@ platform:
554554

555555
steps:
556556
- name: build-push
557-
image: golang:1.17
557+
image: golang:1.20
558558
commands:
559559
- 'go build -v -ldflags "-X main.version=${DRONE_COMMIT_SHA:0:8}" -a -tags netgo -o release/linux/amd64/drone-ecr ./cmd/drone-ecr'
560560
environment:
@@ -564,7 +564,7 @@ steps:
564564
exclude:
565565
- tag
566566
- name: build-tag
567-
image: golang:1.17
567+
image: golang:1.20
568568
commands:
569569
- 'go build -v -ldflags "-X main.version=${DRONE_TAG##v}" -a -tags netgo -o release/linux/amd64/drone-ecr ./cmd/drone-ecr'
570570
environment:
@@ -612,7 +612,7 @@ platform:
612612

613613
steps:
614614
- name: build-push
615-
image: golang:1.17
615+
image: golang:1.20
616616
commands:
617617
- 'go build -v -ldflags "-X main.version=${DRONE_COMMIT_SHA:0:8}" -a -tags netgo -o release/linux/arm64/drone-ecr ./cmd/drone-ecr'
618618
environment:
@@ -622,7 +622,7 @@ steps:
622622
exclude:
623623
- tag
624624
- name: build-tag
625-
image: golang:1.17
625+
image: golang:1.20
626626
commands:
627627
- 'go build -v -ldflags "-X main.version=${DRONE_TAG##v}" -a -tags netgo -o release/linux/arm64/drone-ecr ./cmd/drone-ecr'
628628
environment:
@@ -705,7 +705,7 @@ platform:
705705

706706
steps:
707707
- name: build-push
708-
image: golang:1.17
708+
image: golang:1.20
709709
commands:
710710
- 'go build -v -ldflags "-X main.version=${DRONE_COMMIT_SHA:0:8}" -a -tags netgo -o release/linux/amd64/drone-heroku ./cmd/drone-heroku'
711711
environment:
@@ -715,7 +715,7 @@ steps:
715715
exclude:
716716
- tag
717717
- name: build-tag
718-
image: golang:1.17
718+
image: golang:1.20
719719
commands:
720720
- 'go build -v -ldflags "-X main.version=${DRONE_TAG##v}" -a -tags netgo -o release/linux/amd64/drone-heroku ./cmd/drone-heroku'
721721
environment:
@@ -764,7 +764,7 @@ platform:
764764

765765
steps:
766766
- name: build-push
767-
image: golang:1.17
767+
image: golang:1.20
768768
commands:
769769
- 'go build -v -ldflags "-X main.version=${DRONE_COMMIT_SHA:0:8}" -a -tags netgo -o release/linux/arm64/drone-heroku ./cmd/drone-heroku'
770770
environment:
@@ -774,7 +774,7 @@ steps:
774774
exclude:
775775
- tag
776776
- name: build-tag
777-
image: golang:1.17
777+
image: golang:1.20
778778
commands:
779779
- 'go build -v -ldflags "-X main.version=${DRONE_TAG##v}" -a -tags netgo -o release/linux/arm64/drone-heroku ./cmd/drone-heroku'
780780
environment:
@@ -855,7 +855,7 @@ platform:
855855

856856
steps:
857857
- name: build-push
858-
image: golang:1.17
858+
image: golang:1.20
859859
commands:
860860
- 'go build -v -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -tags netgo -o release/linux/amd64/drone-acr ./cmd/drone-acr'
861861
environment:
@@ -865,7 +865,7 @@ steps:
865865
exclude:
866866
- tag
867867
- name: build-tag
868-
image: golang:1.17
868+
image: golang:1.20
869869
commands:
870870
- 'go build -v -ldflags "-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}" -a -tags netgo -o release/linux/amd64/drone-acr ./cmd/drone-acr'
871871
environment:
@@ -913,7 +913,7 @@ platform:
913913

914914
steps:
915915
- name: build-push
916-
image: golang:1.17
916+
image: golang:1.20
917917
commands:
918918
- 'go build -v -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -tags netgo -o release/linux/arm64/drone-acr ./cmd/drone-acr'
919919
environment:
@@ -924,7 +924,7 @@ steps:
924924
- tag
925925

926926
- name: build-tag
927-
image: golang:1.17
927+
image: golang:1.20
928928
commands:
929929
- 'go build -v -ldflags "-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}" -a -tags netgo -o release/linux/arm64/drone-acr ./cmd/drone-acr'
930930
environment:

0 commit comments

Comments
 (0)