[CI] Changed routine
This commit is contained in:
parent
d5e006d914
commit
9932cdcba2
2 changed files with 5 additions and 9 deletions
|
@ -8,8 +8,7 @@ steps:
|
|||
- go vet $(go list ./... | grep -v /vendor/)
|
||||
- go test -race $(go list ./... | grep -v /vendor/)
|
||||
when:
|
||||
- event: [push, pull_request]
|
||||
branch: main, develop
|
||||
- event: [push, pull_request, cron]
|
||||
|
||||
- name: check-sec
|
||||
image: golang
|
||||
|
@ -18,5 +17,4 @@ steps:
|
|||
- go get -v -d .
|
||||
- gosec ./...
|
||||
when:
|
||||
- event: [push, pull_request]
|
||||
branch: main, develop
|
||||
- event: [push, pull_request, cron]
|
|
@ -4,6 +4,9 @@ steps:
|
|||
commands:
|
||||
- export CI_COMMIT_SHORT_SHA=${CI_COMMIT_SHA:0:10}
|
||||
- go build -ldflags="-X main.CommitSHA=${CI_COMMIT_SHORT_SHA}" -o linux-amd64 .
|
||||
when:
|
||||
- event: [push, cron]
|
||||
branch: [main, develop]
|
||||
|
||||
- name: build-and-push-docker
|
||||
image: woodpeckerci/plugin-docker-buildx:5.2.2
|
||||
|
@ -34,10 +37,5 @@ services:
|
|||
when:
|
||||
- event: [push, cron]
|
||||
|
||||
volumes:
|
||||
gomod-cache:
|
||||
temp: {}
|
||||
|
||||
|
||||
depends_on:
|
||||
- 0-pre
|
Loading…
Add table
Reference in a new issue