peckertest/.woodpecker.yml
Torjus Håkestad 30a165b35a
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Test on push
2022-01-10 13:21:15 +01:00

37 lines
788 B
YAML

pipeline:
test_short:
image: golang:latest
commands:
- go build main.go
- go test -v ./...
when:
event: [pull_request, push]
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]