Skip to content

Commit

Permalink
Merge pull request #465 from drone-plugins/CI-15502
Browse files Browse the repository at this point in the history
fix: [CI-15502]: "Updated docker and go versions to remove vulnerabilities"
  • Loading branch information
Ompragash authored Dec 25, 2024
2 parents 86de147 + dcc762d commit 2140a2b
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 29 deletions.
54 changes: 27 additions & 27 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ platform:

steps:
- name: go build
image: golang:1.22.4
image: golang:1.22.7
environment:
CGO_ENABLED: 0
commands:
Expand Down Expand Up @@ -264,7 +264,7 @@ platform:

steps:
- name: build-push
image: golang:1.22.4
image: golang:1.22.7
commands:
- 'go build -v -ldflags "-X main.version=${DRONE_COMMIT_SHA:0:8}" -a -tags netgo -o release/linux/amd64/drone-docker ./cmd/drone-docker'
environment:
Expand All @@ -275,7 +275,7 @@ steps:
- tag

- name: build-tag
image: golang:1.22.4
image: golang:1.22.7
commands:
- 'go build -v -ldflags "-X main.version=${DRONE_TAG##v}" -a -tags netgo -o release/linux/amd64/drone-docker ./cmd/drone-docker'
environment:
Expand All @@ -285,7 +285,7 @@ steps:
- tag

- name: executable
image: golang:1.22.4
image: golang:1.22.7
commands:
- ./release/linux/amd64/drone-docker --help

Expand Down Expand Up @@ -329,7 +329,7 @@ platform:

steps:
- name: build-push
image: golang:1.22.4
image: golang:1.22.7
commands:
- 'go build -v -ldflags "-X main.version=${DRONE_COMMIT_SHA:0:8}" -a -tags netgo -o release/linux/arm64/drone-docker ./cmd/drone-docker'
environment:
Expand All @@ -340,7 +340,7 @@ steps:
- tag

- name: build-tag
image: golang:1.22.4
image: golang:1.22.7
commands:
- 'go build -v -ldflags "-X main.version=${DRONE_TAG##v}" -a -tags netgo -o release/linux/arm64/drone-docker ./cmd/drone-docker'
environment:
Expand All @@ -350,7 +350,7 @@ steps:
- tag

- name: executable
image: golang:1.22.4
image: golang:1.22.7
commands:
- ./release/linux/arm64/drone-docker --help

Expand Down Expand Up @@ -429,7 +429,7 @@ platform:

steps:
- name: build-push
image: golang:1.22.4
image: golang:1.22.7
commands:
- 'go build -v -ldflags "-X main.version=${DRONE_COMMIT_SHA:0:8}" -a -tags netgo -o release/linux/amd64/drone-gcr ./cmd/drone-gcr'
environment:
Expand All @@ -440,7 +440,7 @@ steps:
- tag

- name: build-tag
image: golang:1.22.4
image: golang:1.22.7
commands:
- 'go build -v -ldflags "-X main.version=${DRONE_TAG##v}" -a -tags netgo -o release/linux/amd64/drone-gcr ./cmd/drone-gcr'
environment:
Expand Down Expand Up @@ -488,7 +488,7 @@ platform:

steps:
- name: build-push
image: golang:1.22.4
image: golang:1.22.7
commands:
- 'go build -v -ldflags "-X main.version=${DRONE_COMMIT_SHA:0:8}" -a -tags netgo -o release/linux/arm64/drone-gcr ./cmd/drone-gcr'
environment:
Expand All @@ -499,7 +499,7 @@ steps:
- tag

- name: build-tag
image: golang:1.22.4
image: golang:1.22.7
commands:
- 'go build -v -ldflags "-X main.version=${DRONE_TAG##v}" -a -tags netgo -o release/linux/arm64/drone-gcr ./cmd/drone-gcr'
environment:
Expand Down Expand Up @@ -582,7 +582,7 @@ platform:

steps:
- name: build-push
image: golang:1.22.4
image: golang:1.22.7
commands:
- 'go build -v -ldflags "-X main.version=${DRONE_COMMIT_SHA:0:8}" -a -tags netgo -o release/linux/amd64/drone-gar ./cmd/drone-gar'
environment:
Expand All @@ -593,7 +593,7 @@ steps:
- tag

- name: build-tag
image: golang:1.22.4
image: golang:1.22.7
commands:
- 'go build -v -ldflags "-X main.version=${DRONE_TAG##v}" -a -tags netgo -o release/linux/amd64/drone-gar ./cmd/drone-gar'
environment:
Expand Down Expand Up @@ -641,7 +641,7 @@ platform:

steps:
- name: build-push
image: golang:1.22.4
image: golang:1.22.7
commands:
- 'go build -v -ldflags "-X main.version=${DRONE_COMMIT_SHA:0:8}" -a -tags netgo -o release/linux/arm64/drone-gar ./cmd/drone-gar'
environment:
Expand All @@ -652,7 +652,7 @@ steps:
- tag

- name: build-tag
image: golang:1.22.4
image: golang:1.22.7
commands:
- 'go build -v -ldflags "-X main.version=${DRONE_TAG##v}" -a -tags netgo -o release/linux/arm64/drone-gar ./cmd/drone-gar'
environment:
Expand Down Expand Up @@ -734,7 +734,7 @@ platform:

steps:
- name: build-push
image: golang:1.22.4
image: golang:1.22.7
commands:
- 'go build -v -ldflags "-X main.version=${DRONE_COMMIT_SHA:0:8}" -a -tags netgo -o release/linux/amd64/drone-ecr ./cmd/drone-ecr'
environment:
Expand All @@ -744,7 +744,7 @@ steps:
exclude:
- tag
- name: build-tag
image: golang:1.22.4
image: golang:1.22.7
commands:
- 'go build -v -ldflags "-X main.version=${DRONE_TAG##v}" -a -tags netgo -o release/linux/amd64/drone-ecr ./cmd/drone-ecr'
environment:
Expand Down Expand Up @@ -792,7 +792,7 @@ platform:

steps:
- name: build-push
image: golang:1.22.4
image: golang:1.22.7
commands:
- 'go build -v -ldflags "-X main.version=${DRONE_COMMIT_SHA:0:8}" -a -tags netgo -o release/linux/arm64/drone-ecr ./cmd/drone-ecr'
environment:
Expand All @@ -802,7 +802,7 @@ steps:
exclude:
- tag
- name: build-tag
image: golang:1.22.4
image: golang:1.22.7
commands:
- 'go build -v -ldflags "-X main.version=${DRONE_TAG##v}" -a -tags netgo -o release/linux/arm64/drone-ecr ./cmd/drone-ecr'
environment:
Expand Down Expand Up @@ -885,7 +885,7 @@ platform:

steps:
- name: build-push
image: golang:1.22.4
image: golang:1.22.7
commands:
- 'go build -v -ldflags "-X main.version=${DRONE_COMMIT_SHA:0:8}" -a -tags netgo -o release/linux/amd64/drone-heroku ./cmd/drone-heroku'
environment:
Expand All @@ -895,7 +895,7 @@ steps:
exclude:
- tag
- name: build-tag
image: golang:1.22.4
image: golang:1.22.7
commands:
- 'go build -v -ldflags "-X main.version=${DRONE_TAG##v}" -a -tags netgo -o release/linux/amd64/drone-heroku ./cmd/drone-heroku'
environment:
Expand Down Expand Up @@ -944,7 +944,7 @@ platform:

steps:
- name: build-push
image: golang:1.22.4
image: golang:1.22.7
commands:
- 'go build -v -ldflags "-X main.version=${DRONE_COMMIT_SHA:0:8}" -a -tags netgo -o release/linux/arm64/drone-heroku ./cmd/drone-heroku'
environment:
Expand All @@ -954,7 +954,7 @@ steps:
exclude:
- tag
- name: build-tag
image: golang:1.22.4
image: golang:1.22.7
commands:
- 'go build -v -ldflags "-X main.version=${DRONE_TAG##v}" -a -tags netgo -o release/linux/arm64/drone-heroku ./cmd/drone-heroku'
environment:
Expand Down Expand Up @@ -1035,7 +1035,7 @@ platform:

steps:
- name: build-push
image: golang:1.22.4
image: golang:1.22.7
commands:
- 'go build -v -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -tags netgo -o release/linux/amd64/drone-acr ./cmd/drone-acr'
environment:
Expand All @@ -1045,7 +1045,7 @@ steps:
exclude:
- tag
- name: build-tag
image: golang:1.22.4
image: golang:1.22.7
commands:
- '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'
environment:
Expand Down Expand Up @@ -1093,7 +1093,7 @@ platform:

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

- name: build-tag
image: golang:1.22.4
image: golang:1.22.7
commands:
- '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'
environment:
Expand Down
2 changes: 1 addition & 1 deletion docker/docker/Dockerfile.linux.amd64
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM docker:20.10.14-dind
FROM docker:27.3.1-dind

ENV DOCKER_HOST=unix:///var/run/docker.sock

Expand Down
2 changes: 1 addition & 1 deletion docker/docker/Dockerfile.linux.arm64
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM arm64v8/docker:20.10.14-dind
FROM arm64v8/docker:27.3.1-dind

ENV DOCKER_HOST=unix:///var/run/docker.sock

Expand Down

0 comments on commit 2140a2b

Please sign in to comment.