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:
|
||||
- name: lint
|
||||
image: golangci/golangci-lint:v1.64.8-alpine
|
||||
image: cache.coadcorp.com/library/golang:1.26
|
||||
environment:
|
||||
GOFLAGS: -mod=mod
|
||||
GOBIN: /usr/local/bin
|
||||
commands:
|
||||
- go install github.com/golangci/golangci-lint/cmd/golangci-lint@v2.10.1
|
||||
- golangci-lint version
|
||||
- golangci-lint run --timeout=5m
|
||||
|
||||
- name: test
|
||||
image: golang:1.26
|
||||
image: cache.coadcorp.com/library/golang:1.26
|
||||
environment:
|
||||
GOFLAGS: -mod=mod
|
||||
commands:
|
||||
- go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
|
||||
|
||||
- name: build
|
||||
image: golang:1.26
|
||||
image: cache.coadcorp.com/library/golang:1.26
|
||||
environment:
|
||||
GOFLAGS: -mod=mod
|
||||
commands:
|
||||
- CGO_ENABLED=0 go build -v ./cmd/invertergui
|
||||
|
||||
- name: docker-build-validate
|
||||
image: gcr.io/kaniko-project/executor:v1.23.2-debug
|
||||
image: gcr.io/kaniko-project/executor:v1.24.0
|
||||
commands:
|
||||
- /kaniko/executor --context "${DRONE_WORKSPACE}" --dockerfile "${DRONE_WORKSPACE}/Dockerfile" --no-push --destination registry.coadcorp.com/nathan/invertergui:pr-${DRONE_BUILD_NUMBER}
|
||||
when:
|
||||
|
||||
Reference in New Issue
Block a user