|
@ -1,21 +1,38 @@ |
|
|
workspace: |
|
|
|
|
|
base: /go |
|
|
|
|
|
path: src/git.aiterp.net/rpdata/api |
|
|
|
|
|
|
|
|
name: rpdata-api |
|
|
|
|
|
|
|
|
pipeline: |
|
|
|
|
|
docker-release: |
|
|
|
|
|
|
|
|
kind: pipeline |
|
|
|
|
|
type: docker |
|
|
|
|
|
|
|
|
|
|
|
steps: |
|
|
|
|
|
- name: go-test |
|
|
|
|
|
image: golang:1.14 |
|
|
|
|
|
commands: |
|
|
|
|
|
- go test -v ./... |
|
|
|
|
|
|
|
|
|
|
|
- name: docker-release-tag |
|
|
image: plugins/docker |
|
|
image: plugins/docker |
|
|
repo: vmaple/rpdata |
|
|
|
|
|
auto_tag: true |
|
|
|
|
|
secrets: [ docker_username, docker_password ] |
|
|
|
|
|
|
|
|
settings: |
|
|
|
|
|
auto_tag: true |
|
|
|
|
|
username: |
|
|
|
|
|
from_secret: docker_username |
|
|
|
|
|
password: |
|
|
|
|
|
from_secret: docker_password |
|
|
|
|
|
repo: r.vmaple.dev/rpdata/rpdata-api |
|
|
|
|
|
registry: r.vmaple.dev |
|
|
when: |
|
|
when: |
|
|
event: tag |
|
|
|
|
|
ref: refs/tags/* |
|
|
|
|
|
docker-release-latest: |
|
|
|
|
|
|
|
|
event: |
|
|
|
|
|
- tag |
|
|
|
|
|
|
|
|
|
|
|
- name: docker-release-latest |
|
|
image: plugins/docker |
|
|
image: plugins/docker |
|
|
repo: vmaple/rpdata |
|
|
|
|
|
tags: latest |
|
|
|
|
|
secrets: [ docker_username, docker_password ] |
|
|
|
|
|
|
|
|
settings: |
|
|
|
|
|
auto_tag: false |
|
|
|
|
|
username: |
|
|
|
|
|
from_secret: docker_username |
|
|
|
|
|
password: |
|
|
|
|
|
from_secret: docker_password |
|
|
|
|
|
repo: r.vmaple.dev/rpdata/rpdata-api |
|
|
|
|
|
registry: r.vmaple.dev |
|
|
when: |
|
|
when: |
|
|
event: tag |
|
|
|
|
|
ref: refs/tags/* |
|
|
|
|
|
|
|
|
event: |
|
|
|
|
|
- tag |