Update CI pipeline: standardize images and upgrade Kaniko executor version
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
11
.drone.yml
11
.drone.yml
@@ -10,28 +10,31 @@ trigger:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: lint
|
- name: lint
|
||||||
image: golangci/golangci-lint:v1.64.8-alpine
|
image: cache.coadcorp.com/library/golang:1.26
|
||||||
environment:
|
environment:
|
||||||
GOFLAGS: -mod=mod
|
GOFLAGS: -mod=mod
|
||||||
|
GOBIN: /usr/local/bin
|
||||||
commands:
|
commands:
|
||||||
|
- go install github.com/golangci/golangci-lint/cmd/golangci-lint@v2.10.1
|
||||||
|
- golangci-lint version
|
||||||
- golangci-lint run --timeout=5m
|
- golangci-lint run --timeout=5m
|
||||||
|
|
||||||
- name: test
|
- name: test
|
||||||
image: golang:1.26
|
image: cache.coadcorp.com/library/golang:1.26
|
||||||
environment:
|
environment:
|
||||||
GOFLAGS: -mod=mod
|
GOFLAGS: -mod=mod
|
||||||
commands:
|
commands:
|
||||||
- go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
|
- go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: golang:1.26
|
image: cache.coadcorp.com/library/golang:1.26
|
||||||
environment:
|
environment:
|
||||||
GOFLAGS: -mod=mod
|
GOFLAGS: -mod=mod
|
||||||
commands:
|
commands:
|
||||||
- CGO_ENABLED=0 go build -v ./cmd/invertergui
|
- CGO_ENABLED=0 go build -v ./cmd/invertergui
|
||||||
|
|
||||||
- name: docker-build-validate
|
- name: docker-build-validate
|
||||||
image: gcr.io/kaniko-project/executor:v1.23.2-debug
|
image: gcr.io/kaniko-project/executor:v1.24.0
|
||||||
commands:
|
commands:
|
||||||
- /kaniko/executor --context "${DRONE_WORKSPACE}" --dockerfile "${DRONE_WORKSPACE}/Dockerfile" --no-push --destination registry.coadcorp.com/nathan/invertergui:pr-${DRONE_BUILD_NUMBER}
|
- /kaniko/executor --context "${DRONE_WORKSPACE}" --dockerfile "${DRONE_WORKSPACE}/Dockerfile" --no-push --destination registry.coadcorp.com/nathan/invertergui:pr-${DRONE_BUILD_NUMBER}
|
||||||
when:
|
when:
|
||||||
|
|||||||
Reference in New Issue
Block a user