use go 1.18.3 on all places

As the docker built-in hugo and drone plugin uses go 1.18.3 as
  dependence, drone.yml was modified to use go 1.18.3 either.

  - All golang/1.14 was replaced by golang/1.18.3.
This commit is contained in:
AzurCrystal 2022-08-03 00:34:24 +08:00
commit c10a8fc610
2 changed files with 19 additions and 19 deletions

View file

@ -9,7 +9,7 @@ platform:
steps:
- name: vet
pull: always
image: golang:1.14
image: golang:1.18.3
commands:
- go vet ./...
environment:
@ -20,7 +20,7 @@ steps:
- name: test
pull: always
image: golang:1.14
image: golang:1.18.3
commands:
- go test -cover ./...
environment:
@ -50,7 +50,7 @@ platform:
steps:
- name: build-push
pull: always
image: golang:1.14
image: golang:1.18.3
commands:
- "go build -v -ldflags \"-X main.version=${DRONE_COMMIT_SHA:0:8}\" -a -tags netgo -o release/linux/amd64/drone-hugo"
environment:
@ -63,7 +63,7 @@ steps:
- name: build-tag
pull: always
image: golang:1.14
image: golang:1.18.3
commands:
- "go build -v -ldflags \"-X main.version=${DRONE_TAG##v}\" -a -tags netgo -o release/linux/amd64/drone-hugo"
environment:
@ -75,7 +75,7 @@ steps:
- name: executable
pull: always
image: golang:1.14
image: golang:1.18.3
commands:
- ./release/linux/amd64/drone-hugo --help
@ -134,7 +134,7 @@ platform:
steps:
- name: build-push
pull: always
image: golang:1.14
image: golang:1.18.3
commands:
- "go build -v -ldflags \"-X main.version=${DRONE_COMMIT_SHA:0:8}\" -a -tags netgo -o release/linux/arm64/drone-hugo"
environment:
@ -147,7 +147,7 @@ steps:
- name: build-tag
pull: always
image: golang:1.14
image: golang:1.18.3
commands:
- "go build -v -ldflags \"-X main.version=${DRONE_TAG##v}\" -a -tags netgo -o release/linux/arm64/drone-hugo"
environment:
@ -159,7 +159,7 @@ steps:
- name: executable
pull: always
image: golang:1.14
image: golang:1.18.3
commands:
- ./release/linux/arm64/drone-hugo --help
@ -218,7 +218,7 @@ platform:
steps:
- name: build-push
pull: always
image: golang:1.14
image: golang:1.18.3
commands:
- "go build -v -ldflags \"-X main.version=${DRONE_COMMIT_SHA:0:8}\" -a -tags netgo -o release/linux/arm/drone-hugo"
environment:
@ -231,7 +231,7 @@ steps:
- name: build-tag
pull: always
image: golang:1.14
image: golang:1.18.3
commands:
- "go build -v -ldflags \"-X main.version=${DRONE_TAG##v}\" -a -tags netgo -o release/linux/arm/drone-hugo"
environment:
@ -243,7 +243,7 @@ steps:
- name: executable
pull: always
image: golang:1.14
image: golang:1.18.3
commands:
- ./release/linux/arm/drone-hugo --help