name: rpdata-api kind: pipeline type: docker steps: - name: go-test image: golang:1.14 commands: - go generate ./... - go test -v ./... - name: docker-release-tag image: plugins/docker 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: event: - tag - name: docker-release-latest image: plugins/docker 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: event: - tag