Use multi-pipeline for CI
This commit is contained in:
parent
4db48f1ae1
commit
ce8065cbbc
@ -1,13 +1,4 @@
|
|||||||
pipeline:
|
pipeline:
|
||||||
build:
|
|
||||||
image: golang:${GO_VERSION}
|
|
||||||
commands:
|
|
||||||
- go build main.go
|
|
||||||
- go test -v ./...
|
|
||||||
when:
|
|
||||||
branch: master
|
|
||||||
event: [push, pull_request, tag, deployment]
|
|
||||||
|
|
||||||
tag:
|
tag:
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
commands:
|
commands:
|
||||||
@ -15,6 +6,8 @@ pipeline:
|
|||||||
- cat .tags
|
- cat .tags
|
||||||
when:
|
when:
|
||||||
status: [success]
|
status: [success]
|
||||||
|
branch: refs/tags/*
|
||||||
|
tag: v*
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
@ -22,11 +15,12 @@ pipeline:
|
|||||||
repo: registry.t-juice.club/ezshare
|
repo: registry.t-juice.club/ezshare
|
||||||
username: woodpecker
|
username: woodpecker
|
||||||
password:
|
password:
|
||||||
from_secret: registrypassword
|
from_secret: registrypass
|
||||||
when:
|
when:
|
||||||
|
branch: refs/tags/*
|
||||||
tag: v*
|
tag: v*
|
||||||
|
|
||||||
matrix:
|
depends_on:
|
||||||
GO_VERSION:
|
- "test"
|
||||||
- "1.17"
|
|
||||||
- "latest"
|
run_on: [success]
|
15
.woodpecker/test.yml
Normal file
15
.woodpecker/test.yml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
pipeline:
|
||||||
|
test:
|
||||||
|
image: golang:${GO_VERSION}
|
||||||
|
commands:
|
||||||
|
- go build main.go
|
||||||
|
- go test -v ./...
|
||||||
|
- go vet ./...
|
||||||
|
when:
|
||||||
|
branch: master
|
||||||
|
event: [push, pull_request, tag, deployment]
|
||||||
|
|
||||||
|
matrix:
|
||||||
|
GO_VERSION:
|
||||||
|
- "1.17"
|
||||||
|
- "latest"
|
@ -1,4 +1,4 @@
|
|||||||
package ezshare
|
package ezshare
|
||||||
|
|
||||||
// TODO: Maybe put this somewhere more sensible
|
// TODO: Maybe put this somewhere more sensible
|
||||||
const Version = "v0.1.2"
|
const Version = "v0.1.3"
|
||||||
|
Loading…
Reference in New Issue
Block a user