diff --git a/deploy/image-push.sh b/deploy/image-push.sh index e894638..087b84d 100755 --- a/deploy/image-push.sh +++ b/deploy/image-push.sh @@ -8,5 +8,6 @@ export SERVER_IMAGE="$IMAGE_BASE-svc" TARGET=${1:-latest} echo $DOCKER_PASSWORD | docker login git.pbiernat.dev -u $DOCKER_USERNAME --password-stdin + docker push "$SERVER_IMAGE:$TARGET" # docker push "$WORKER_IMAGE:$TARGET" diff --git a/src/internal/app/config/env.go b/src/internal/app/config/env.go index 9dbe349..67c6b43 100644 --- a/src/internal/app/config/env.go +++ b/src/internal/app/config/env.go @@ -12,7 +12,7 @@ func init() { ErrLoadingEnvs = godotenv.Load() } -func GetEnv(name string, defVal string) string { // FIXME defVal and return types +func GetEnv(name string, defVal string) string { env := os.Getenv(name) if env == "" { return defVal diff --git a/src/internal/app/server/server.go b/src/internal/app/server/server.go index c7b3fb5..418dcb8 100644 --- a/src/internal/app/server/server.go +++ b/src/internal/app/server/server.go @@ -32,7 +32,6 @@ type Headers struct { } func NewServer(conf *Config, logger *fluentd.Logger, db *pgxpool.Pool /*, ebCh *amqp.Channel*/) *Server { - logger.Log("API_ID: %s", conf.AppID) consul, err := discovery.NewService(conf.RegistryAddr, conf.AppID, conf.AppName, conf.AppID, conf.AppDomain, conf.Port) if err != nil { logger.Log("Error connecting to %s: %v", conf.RegistryAddr, err)