Add .drone.yml
continuous-integration/drone Build is passing Details

master
René Jochum 2 years ago
parent f34421c18f
commit c54a07d2e7
Signed by: jochum
GPG Key ID: F7D906F5E51E8E5E

@ -0,0 +1,42 @@
---
kind: pipeline
type: docker
name: default
platform:
os: linux
arch: amd64
trigger:
event:
- cron
- custom
- tag
steps:
- name: build-builder
image: plugins/docker
settings:
registry: registry.fk.jochum.dev
username: robot$jo-micro+drone
password:
from_secret: registry.fk.jochum.dev-robot
dockerfile: ./docker/builder/Dockerfile
context: ./docker/builder/
repo: registry.fk.jochum.dev/jo-micro/router-builder
tags:
- latest
- name: build-router
image: plugins/docker
settings:
registry: registry.fk.jochum.dev
username: robot$jo-micro+drone
password:
from_secret: registry.fk.jochum.dev-robot
dockerfile: ./docker/builder/Dockerfile
context: ./docker/builder/
repo: registry.fk.jochum.dev/jo-micro/router
build_args:
- VERSION=${DRONE_TAG:1}
auto_tag: true

@ -66,27 +66,10 @@ tasks:
VOLUME_PATH:
sh: podman volume inspect micro_router_go --format "{{"{{"}}.Mountpoint{{"}}"}}"
tag:podman:
cmds:
- podman tag registry.fk.jochum.dev/jo-micro/router:latest registry.fk.jochum.dev/jo-micro/router:{{.GIT_TAG}}
status:
- test "{{.VERSION}}" != "{{.GIT_TAG}}"
podman:
desc: Generate docker container for go-micro-router tagged as registry.fk.jochum.dev/jo-micro/router:latest and :GIT_TAG if theres a tag
cmds:
- task: build:podman
- task: tag:podman
release:
desc: Release images to docker.io, this requires the current commit to be a git tag
deps:
- podman
cmds:
- podman push registry.fk.jochum.dev/jo-micro/router:latest
- podman push registry.fk.jochum.dev/jo-micro/router:{{.GIT_TAG}}
status:
- test "{{.VERSION}}" != "{{.GIT_TAG}}"
tidy:
desc: Run "go mod tidy" in a container

@ -183,8 +183,8 @@ var file_routerclientpb_proto_rawDesc = []byte{
0x74, 0x65, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1b, 0x2e, 0x72, 0x6f,
0x75, 0x74, 0x65, 0x72, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2e, 0x52, 0x6f, 0x75,
0x74, 0x65, 0x73, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x42, 0x40, 0x5a, 0x3e, 0x67, 0x69,
0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2d, 0x6d, 0x69, 0x63, 0x72,
0x74, 0x65, 0x73, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x42, 0x40, 0x5a, 0x3e, 0x6a, 0x6f,
0x63, 0x68, 0x75, 0x6d, 0x2e, 0x64, 0x65, 0x76, 0x2f, 0x6a, 0x6f, 0x2d, 0x6d, 0x69, 0x63, 0x72,
0x6f, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72,
0x6f, 0x75, 0x74, 0x65, 0x72, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x3b, 0x72, 0x6f,
0x75, 0x74, 0x65, 0x72, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72,

@ -143,8 +143,8 @@ var file_routerserverpb_proto_rawDesc = []byte{
0x74, 0x65, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1b, 0x2e, 0x72, 0x6f,
0x75, 0x74, 0x65, 0x72, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x70, 0x62, 0x2e, 0x52, 0x6f, 0x75,
0x74, 0x65, 0x73, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x42, 0x40, 0x5a, 0x3e, 0x67, 0x69,
0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2d, 0x6d, 0x69, 0x63, 0x72,
0x74, 0x65, 0x73, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x42, 0x40, 0x5a, 0x3e, 0x6a, 0x6f,
0x63, 0x68, 0x75, 0x6d, 0x2e, 0x64, 0x65, 0x76, 0x2f, 0x6a, 0x6f, 0x2d, 0x6d, 0x69, 0x63, 0x72,
0x6f, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72,
0x6f, 0x75, 0x74, 0x65, 0x72, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x70, 0x62, 0x3b, 0x72, 0x6f,
0x75, 0x74, 0x65, 0x72, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72,

Loading…
Cancel
Save