fix gitlab ci
This commit is contained in:
parent
0508a4867e
commit
b928dbe0a5
|
@ -12,11 +12,12 @@ before_script:
|
||||||
build-my-project:
|
build-my-project:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- go install dev.sum7.eu/$CI_PROJECT_PATH/...
|
- go install dev.sum7.eu/$CI_PROJECT_PATH/logging/...
|
||||||
- mv /go/bin/$CI_PROJECT_NAME /builds/$CI_PROJECT_PATH
|
- mv /go/bin/service /builds/mu-logging-srv
|
||||||
|
- mv /go/bin/cmd /builds/mu-logging-cmd
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- $CI_PROJECT_NAME
|
- mu-*
|
||||||
|
|
||||||
test-my-project:
|
test-my-project:
|
||||||
stage: test
|
stage: test
|
||||||
|
|
10
README.md
10
README.md
|
@ -1,3 +1,9 @@
|
||||||
# microservices collection
|
|
||||||
|
|
||||||
Some microservices using rabbitmq
|
# microservices collection
|
||||||
|
[![Build Status](https://dev.sum7.eu/genofire/microservices-collection/badges/master/build.svg)](https://dev.sum7.eu/genofire/microservices-collection/pipelines)
|
||||||
|
[![Go Report Card](https://goreportcard.com/badge/dev.sum7.eu/genofire/microservices-collection)](https://goreportcard.com/report/dev.sum7.eu/genofire/microservices-collection)
|
||||||
|
[![GoDoc](https://godoc.org/dev.sum7.eu/genofire/microservices-collection?status.svg)](https://godoc.org/dev.sum7.eu/genofire/microservices-collection)
|
||||||
|
|
||||||
|
|
||||||
|
Some microservices using rabbitmq
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
package lib
|
|
@ -0,0 +1 @@
|
||||||
|
package main
|
|
@ -0,0 +1 @@
|
||||||
|
package logging
|
|
@ -19,7 +19,7 @@ import (
|
||||||
var logRecieved = false
|
var logRecieved = false
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
flag.BoolVar(&logRecieved, "recieved", logRecieved, "show recieved log on console")
|
flag.BoolVar(&logRecieved, "received", logRecieved, "show received log on console")
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
lib.LogUpdateConfig()
|
lib.LogUpdateConfig()
|
||||||
|
|
||||||
|
@ -124,5 +124,5 @@ func main() {
|
||||||
sigs := make(chan os.Signal, 1)
|
sigs := make(chan os.Signal, 1)
|
||||||
signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM)
|
signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM)
|
||||||
sig := <-sigs
|
sig := <-sigs
|
||||||
log.WithField("recieved", sig).Info("stopped")
|
log.WithField("received", sig).Info("stopped")
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
package main
|
Reference in New Issue