Torjus Håkestad
3f48877472
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
47 lines
993 B
YAML
47 lines
993 B
YAML
pipeline:
|
|
test_short:
|
|
image: golang:latest
|
|
commands:
|
|
- go build main.go
|
|
- go test -v ./...
|
|
when:
|
|
event: [pull_request, push]
|
|
|
|
image-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
|
|
|
|
image-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]
|
|
|
|
goreleaser-tagged:
|
|
image: goreleaser/goreleaser
|
|
commands:
|
|
- echo "$GITEA_TOKEN" > gitea_token
|
|
- goreleaser release
|
|
when:
|
|
branch: master
|
|
event: tag
|
|
secrets: [ssh_key]
|