forked from lunny/centos-go
31 lines
578 B
YAML
31 lines
578 B
YAML
workspace:
|
|
base: /go
|
|
path: src/gitea.com/lunny/centos-go
|
|
|
|
clone:
|
|
git:
|
|
image: plugins/git:next
|
|
depth: 50
|
|
tags: true
|
|
|
|
pipeline:
|
|
|
|
docker-dryrun:
|
|
image: plugins/docker:17.12
|
|
pull: true
|
|
repo: lunny/centos-go
|
|
cache_from: lunny/centos-go
|
|
dry_run: true
|
|
when:
|
|
event: [ pull_request ]
|
|
|
|
release-docker:
|
|
image: plugins/docker:17.12
|
|
pull: true
|
|
secrets: [ docker_username, docker_password ]
|
|
repo: lunny/centos-go
|
|
tags: [ 'latest' ]
|
|
cache_from: lunny/centos-go
|
|
when:
|
|
event: [ push ]
|
|
branch: [ master ] |