Refactor import paths to use the full repository URL and remove obsolete GitHub Actions workflow file
This commit is contained in:
86
.drone.yml
Normal file
86
.drone.yml
Normal file
@@ -0,0 +1,86 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: ci
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- pull_request
|
||||
- push
|
||||
- tag
|
||||
|
||||
steps:
|
||||
- name: lint
|
||||
image: golangci/golangci-lint:v1.64.8-alpine
|
||||
environment:
|
||||
GOFLAGS: -mod=mod
|
||||
commands:
|
||||
- golangci-lint run --timeout=5m
|
||||
|
||||
- name: test
|
||||
image: golang:1.26
|
||||
environment:
|
||||
GOFLAGS: -mod=mod
|
||||
commands:
|
||||
- go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
|
||||
|
||||
- name: build
|
||||
image: 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
|
||||
commands:
|
||||
- /kaniko/executor --context "${DRONE_WORKSPACE}" --dockerfile "${DRONE_WORKSPACE}/Dockerfile" --no-push --destination registry.coadcorp.com/nathan/invertergui:pr-${DRONE_BUILD_NUMBER}
|
||||
when:
|
||||
event:
|
||||
- pull_request
|
||||
|
||||
- name: docker-publish-commit
|
||||
image: plugins/docker
|
||||
settings:
|
||||
registry: registry.coadcorp.com
|
||||
repo: registry.coadcorp.com/nathan/invertergui
|
||||
dockerfile: Dockerfile
|
||||
username: nathan
|
||||
password:
|
||||
from_secret: registry_password
|
||||
tags:
|
||||
- ${DRONE_COMMIT_SHA}
|
||||
when:
|
||||
event:
|
||||
- push
|
||||
|
||||
- name: docker-publish-latest
|
||||
image: plugins/docker
|
||||
settings:
|
||||
registry: registry.coadcorp.com
|
||||
repo: registry.coadcorp.com/nathan/invertergui
|
||||
dockerfile: Dockerfile
|
||||
username: nathan
|
||||
password:
|
||||
from_secret: registry_password
|
||||
tags:
|
||||
- latest
|
||||
when:
|
||||
event:
|
||||
- push
|
||||
branch:
|
||||
- main
|
||||
- master
|
||||
|
||||
- name: docker-publish-release
|
||||
image: plugins/docker
|
||||
settings:
|
||||
registry: registry.coadcorp.com
|
||||
repo: registry.coadcorp.com/nathan/invertergui
|
||||
dockerfile: Dockerfile
|
||||
username: nathan
|
||||
password:
|
||||
from_secret: registry_password
|
||||
auto_tag: true
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
Reference in New Issue
Block a user