Initial commit
This commit is contained in:
8
.woodpecker/pr.yml
Normal file
8
.woodpecker/pr.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
pipeline:
|
||||
test_short:
|
||||
image: golang:latest
|
||||
commands:
|
||||
- go build main.go
|
||||
- go test -v ./...
|
||||
when:
|
||||
event: [pull_request]
|
28
.woodpecker/push.yml
Normal file
28
.woodpecker/push.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
pipeline:
|
||||
release-latest:
|
||||
image: plugins/docker
|
||||
settings:
|
||||
repo: registry.t-juice.club/peckertest
|
||||
registry: registry.t-juice.club
|
||||
username: woodpecker
|
||||
password:
|
||||
from_secret: registry_password
|
||||
tags:
|
||||
- latest
|
||||
- "${CI_COMMIT_SHA:0:8}"
|
||||
when:
|
||||
branch: master
|
||||
event: push
|
||||
|
||||
release-tagged:
|
||||
image: plugins/docker
|
||||
settings:
|
||||
repo: registry.t-juice.club/peckertest
|
||||
registry: registry.t-juice.club
|
||||
username: woodpecker
|
||||
password:
|
||||
from_secret: registry_password
|
||||
tags:
|
||||
- "${CI_COMMIT_TAG}"
|
||||
when:
|
||||
event: [tag]
|
Reference in New Issue
Block a user