diff --git a/.circleci/config.yml b/.circleci/config.yml index db70663..f1e5b38 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -178,21 +178,34 @@ jobs: zip -r ${PKG_NAME}-${VERSION}-amd64.zip ${PKG_NAME}-${VERSION} zip -r ${PKG_NAME}-${VERSION}-arm64.zip ${PKG_NAME}-${VERSION}-arm64 - - run: - name: Create GitHub Release - command: | - VERSION=$(jq -r .version package.json) - PKG_NAME=cosmos-cloud - MAINTAINER_NAME="Yann Stepienik" - MAINTAINER_EMAIL="cosmoscloudsup@gmail.com" - GH_TOKEN=$GITHUB_TOKEN - gh release create v$VERSION \ - ../${PKG_NAME}_${VERSION}_amd64.deb \ - ../${PKG_NAME}_${VERSION}_arm64.deb \ - ${PKG_NAME}-${VERSION}-amd64.zip \ - ${PKG_NAME}-${VERSION}-arm64.zip \ - --title "Release $VERSION" \ - --notes "Release version $VERSION for x86_64 and ARM64 architectures" + - store_artifacts: + path: ../${PKG_NAME}_${VERSION}_amd64.deb + destination: ${PKG_NAME}_${VERSION}_amd64.deb + - store_artifacts: + path: ../${PKG_NAME}_${VERSION}_arm64.deb + destination: ${PKG_NAME}_${VERSION}_arm64.deb + - store_artifacts: + path: ${PKG_NAME}-${VERSION}-amd64.zip + destination: ${PKG_NAME}-${VERSION}-amd64.zip + - store_artifacts: + path: ${PKG_NAME}-${VERSION}-arm64.zip + destination: ${PKG_NAME}-${VERSION}-arm64.zip + + # - run: + # name: Create GitHub Release + # command: | + # VERSION=$(jq -r .version package.json) + # PKG_NAME=cosmos-cloud + # MAINTAINER_NAME="Yann Stepienik" + # MAINTAINER_EMAIL="cosmoscloudsup@gmail.com" + # GH_TOKEN=$GITHUB_TOKEN + # gh release create v$VERSION \ + # ../${PKG_NAME}_${VERSION}_amd64.deb \ + # ../${PKG_NAME}_${VERSION}_arm64.deb \ + # ${PKG_NAME}-${VERSION}-amd64.zip \ + # ${PKG_NAME}-${VERSION}-arm64.zip \ + # --title "Release $VERSION" \ + # --notes "Release version $VERSION for x86_64 and ARM64 architectures" workflows: version: 2 diff --git a/package.json b/package.json index d2f5599..73b4aaa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cosmos-server", - "version": "0.17.0-unstable4", + "version": "0.17.0-unstable5", "description": "", "main": "test-server.js", "bugs": { diff --git a/src/docker/docker.go b/src/docker/docker.go index ac1d4d8..6acb255 100644 --- a/src/docker/docker.go +++ b/src/docker/docker.go @@ -921,16 +921,13 @@ func IsInsideContainer() { if os.Getenv("HOSTNAME") != "" { errD := Connect() if errD != nil { - utils.Error("isInsideContainer", errD) return } _, err := DockerClient.ContainerInspect(DockerContext, os.Getenv("HOSTNAME")) - utils.Debug("isInsideContainer - Checking if inside container " + os.Getenv("HOSTNAME")) if err == nil { - utils.Debug("isInsideContainer - Inside container " + os.Getenv("HOSTNAME")) utils.IsInsideContainer = true } } diff --git a/src/utils/log.go b/src/utils/log.go index c92ad97..5f79a02 100644 --- a/src/utils/log.go +++ b/src/utils/log.go @@ -59,9 +59,6 @@ func InitLogs() { // Create loggers logger = log.New(multiWriter, "", log.Ldate|log.Ltime) errorLogger = log.New(errorWriter, "", log.Ldate|log.Ltime) - - log.Println("Logging initialized") // shows - logger.Println("Logging initialized") // does not show } func logMessage(level LogLevel, prefix, prefixColor, color, message string) {