diff --git a/Makefile b/Makefile index 134a705c..dd03484e 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ BUILDVERSION=-ldflags "-X main.VERSION=${VERSION} -X main.COMMIT=${COMMIT}" TRVIS_SECRET=O3/2KTOV8krv+yZ1EB/7D1RQRe6NdpFUEJNJkMS/ollYqmz3x2mCO7yIgIJKCKguLXZxjM6CxJcjlCrvUwibL+8BBp7xJe4XFIOrjkPvbbVPry4HkFZCf2GfcUK6o4AByQ+RYqsW2F17Fp9KLQ1rL3OT3eLTwCAGKx3tlY8y+an43zkmo5dN64V6sawx26fh6XTfww590ey+ltgQTjf8UPNup2wZmGvMo9Hwvh/bYR/47bR6PlBh6vhlKWyotKf2Fz1Bevbu0zc35pee5YlsrHR+oSF+/nNd/dOij34BhtqQikUR+zQVy9yty8SlmneVwD3yOENvlF+8roeKIXb6P6eZnSMHvelhWpAFTwDXq2N3d/FIgrQtLxsAFTI3nTHvZgs6OoTd6dA0wkhuIGLxaL3FOeztCdxP5J/CQ9GUcTvifh5ArGGwYxRxQU6rTgtebJcNtXFISP9CEUR6rwRtb6ax7h6f1SbjUGAdxt+r2LbEVEk4ZlwHvdJ2DtzJHT5DQtLrqq/CTUgJ8SJFMkrJMp/pPznKhzN4qvd8oQJXygSXX/gz92MvoX0xgpNeLsUdAn+PL9KketfR+QYosBz04d8k05E+aTqGaU7FUCHPTLwlOFvLD8Gbv0zsC/PWgSLXTBlcqLEz5PHwPVHTcVzspKj/IyYimXpCSbvu1YOIjyc= PUBLISH_BODY='{ "request": { "branch": "master", "message": "Homebrew update version v${VERSION}", "config": { "env": { "VERSION": "${VERSION}", "COMMIT": "$(TRAVIS_COMMIT)" } } } }' TRAVIS_BUILD_CMD='{ "request": { "branch": "master", "message": "Compile master for Statping v${VERSION}", "config": { "merge_mode": "replace", "language": "go", "go": 1.14, "install": true, "sudo": "required", "services": ["docker"], "env": { "secure": "${TRVIS_SECRET}" }, "before_deploy": ["git config --local user.name \"hunterlong\"", "git config --local user.email \"info@socialeck.com\"", "git tag v$(VERSION) --force"], "deploy": [{ "provider": "releases", "api_key": "$$GITHUB_TOKEN", "file_glob": true, "file": "build/*", "skip_cleanup": true, "on": { "branch": "master" } }], "before_script": ["rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install stable", "nvm install 10.17.0", "nvm use 10.17.0 --default", "npm install -g sass yarn cross-env", "pip install --user awscli"], "script": ["make release"], "after_success": [], "after_deploy": ["make post-release"] } } }' -TEST_DIR=$(GOPATH)/src/github.com/statping/statping +TEST_DIR=$(GOPATH)/src/github.com/statping-ng/statping-ng PATH:=$(GOPATH)/bin:$(PATH) OS = freebsd linux openbsd ARCHS = 386 arm amd64 arm64 @@ -44,7 +44,7 @@ down: docker-compose -f docker-compose.yml -f dev/docker-compose.full.yml down --volumes --remove-orphans lite: clean - docker build -t statping/statping:dev -f dev/Dockerfile.dev . + docker build -t statping-ng/statping-ng:dev -f dev/Dockerfile.dev . docker-compose -f dev/docker-compose.lite.yml down docker-compose -f dev/docker-compose.lite.yml up --remove-orphans @@ -115,23 +115,23 @@ compose-build-full: docker-base docker-compose -f docker-compose.yml -f dev/docker-compose.full.yml build --parallel --build-arg VERSION=${VERSION} docker-base: - docker build -t statping/statping:base -f Dockerfile.base --build-arg VERSION=${VERSION} . + docker build -t statping-ng/statping-ng:base -f Dockerfile.base --build-arg VERSION=${VERSION} . docker-latest: docker-base - docker build -t statping/statping:latest --build-arg VERSION=${VERSION} . + docker build -t statping-ng/statping-ng:latest --build-arg VERSION=${VERSION} . docker-vue: - docker build -t statping/statping:vue --build-arg VERSION=${VERSION} . + docker build -t statping-ng/statping-ng:vue --build-arg VERSION=${VERSION} . docker-test: docker-compose -f docker-compose.test.yml up --remove-orphans push-base: clean compile docker-base - docker push statping/statping:base + docker push statping-ng/statping-ng:base push-vue: clean compile docker-base docker-vue - docker push statping/statping:base - docker push statping/statping:vue + docker push statping-ng/statping-ng:base + docker push statping-ng/statping-ng:vue modd: modd -f ./dev/modd.conf @@ -287,20 +287,20 @@ download-key: # push the :dev docker tag using curl dockerhub-dev: - docker build --build-arg VERSION=${VERSION} -t statping/statping:dev --no-cache -f Dockerfile.base . - docker push statping/statping:dev + docker build --build-arg VERSION=${VERSION} -t statping-ng/statping-ng:dev --no-cache -f Dockerfile.base . + docker push statping-ng/statping-ng:dev dockerhub: - docker build --build-arg VERSION=${VERSION} -t statping/statping:base --no-cache -f Dockerfile.base . - docker build --build-arg VERSION=${VERSION} -t statping/statping:latest --no-cache -f Dockerfile . - docker tag statping/statping statping/statping:v${VERSION} - docker push statping/statping:base - docker push statping/statping:v${VERSION} - docker push statping/statping + docker build --build-arg VERSION=${VERSION} -t statping-ng/statping-ng:base --no-cache -f Dockerfile.base . + docker build --build-arg VERSION=${VERSION} -t statping-ng/statping-ng:latest --no-cache -f Dockerfile . + docker tag statping-ng/statping-ng statping-ng/statping-ng:v${VERSION} + docker push statping-ng/statping-ng:base + docker push statping-ng/statping-ng:v${VERSION} + docker push statping-ng/statping-ng docker-build-dev: - docker build --build-arg VERSION=${VERSION} -t statping/statping:latest --no-cache -f Dockerfile . - docker tag statping/statping:latest statping/statping:dev-v${VERSION} + docker build --build-arg VERSION=${VERSION} -t statping-ng/statping-ng:latest --no-cache -f Dockerfile . + docker tag statping-ng/statping-ng:latest statping-ng/statping-ng:dev-v${VERSION} post-release: frontend-build upload_to_s3 publish-homebrew dockerhub @@ -383,19 +383,19 @@ xgo-latest: buildx-latest: multiarch docker buildx create --name statping-latest docker buildx inspect --builder statping-latest --bootstrap - docker buildx build --builder statping-latest --cache-from "type=local,src=/tmp/.buildx-cache" --cache-to "type=local,dest=/tmp/.buildx-cache" --pull --push --platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6 -f Dockerfile -t statping/statping:latest -t statping/statping:v${VERSION} --build-arg=VERSION=${VERSION} --build-arg=COMMIT=${COMMIT} . + docker buildx build --builder statping-latest --cache-from "type=local,src=/tmp/.buildx-cache" --cache-to "type=local,dest=/tmp/.buildx-cache" --pull --push --platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6 -f Dockerfile -t statping-ng/statping-ng:latest -t statping-ng/statping-ng:v${VERSION} --build-arg=VERSION=${VERSION} --build-arg=COMMIT=${COMMIT} . docker buildx rm statping-latest buildx-dev: multiarch docker buildx create --name statping-dev docker buildx inspect --builder statping-dev --bootstrap - docker buildx build --builder statping-dev --cache-from "type=local,src=/tmp/.buildx-cache" --cache-to "type=local,dest=/tmp/.buildx-cache" --pull --push --platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6 -f Dockerfile -t statping/statping:dev --build-arg=VERSION=${VERSION} --build-arg=COMMIT=${COMMIT} . + docker buildx build --builder statping-dev --cache-from "type=local,src=/tmp/.buildx-cache" --cache-to "type=local,dest=/tmp/.buildx-cache" --pull --push --platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6 -f Dockerfile -t statping-ng/statping-ng:dev --build-arg=VERSION=${VERSION} --build-arg=COMMIT=${COMMIT} . docker buildx rm statping-dev buildx-base: multiarch docker buildx create --name statping-base docker buildx inspect --builder statping-base --bootstrap - docker buildx build --builder statping-base --cache-from "type=local,src=/tmp/.buildx-cache" --cache-to "type=local,dest=/tmp/.buildx-cache" --pull --push --platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6 -f Dockerfile.base -t statping/statping:base --build-arg=VERSION=${VERSION} --build-arg=COMMIT=${COMMIT} . + docker buildx build --builder statping-base --cache-from "type=local,src=/tmp/.buildx-cache" --cache-to "type=local,dest=/tmp/.buildx-cache" --pull --push --platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6 -f Dockerfile.base -t statping-ng/statping-ng:base --build-arg=VERSION=${VERSION} --build-arg=COMMIT=${COMMIT} . docker buildx rm statping-base multiarch: diff --git a/cmd/cli.go b/cmd/cli.go index 43f3071e..ae205040 100644 --- a/cmd/cli.go +++ b/cmd/cli.go @@ -351,7 +351,7 @@ func ask(format string) bool { func updateDisplay() error { gitCurrent, err := checkGithubUpdates() if err != nil { - return errors.Wrap(err, "Issue connecting to https://github.com/statping/statping") + return errors.Wrap(err, "Issue connecting to https://github.com/statping-ng/statping-ng") } if gitCurrent.TagName == "" { return nil @@ -395,7 +395,7 @@ func runOnce() error { } func checkGithubUpdates() (githubResponse, error) { - url := "https://api.github.com/repos/statping/statping/releases/latest" + url := "https://api.github.com/repos/statping-ng/statping-ng/releases/latest" contents, _, err := utils.HttpRequest(url, "GET", nil, nil, nil, time.Duration(2*time.Second), true, nil) if err != nil { return githubResponse{}, err diff --git a/doc.go b/doc.go index dbcf086e..ebb0ad21 100644 --- a/doc.go +++ b/doc.go @@ -21,4 +21,4 @@ // docker run -it -p 8080:8080 statping/statping // // Enjoy Statping and tell me any issues you might be having on Github. https://github.com/adamboutcher -package statping +package statping-ng diff --git a/go.mod b/go.mod index 6e53bc32..d916b764 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/adamboutcher/statping-ng +module github.com/statping-ng/statping-ng // +heroku goVersion go1.14 go 1.14 diff --git a/go.sum b/go.sum index 60a74354..a40a4e39 100755 --- a/go.sum +++ b/go.sum @@ -585,7 +585,7 @@ github.com/spf13/viper v1.6.3 h1:pDDu1OyEDTKzpJwdq4TiuLyMsUgRa/BT5cn5O62NoHs= github.com/spf13/viper v1.6.3/go.mod h1:jUMtyi0/lB5yZH/FjyGAoH7IMNrIhlBf6pXZmbMDvzw= github.com/statping/emails v1.0.0 h1:90hGweEhr8wIFiy34KCkiFqGJlkug2gAQLVR6oSCFNU= github.com/statping/emails v1.0.0/go.mod h1:xFU85jXaiWQadqHqu/jDrGsAn6WPSk1WgKyTVuFm0TI= -github.com/statping/statping v0.90.64/go.mod h1:lbyNPB73IjWtnommV4wSejYfgUT1yLhhqelMjl1ZBb8= +github.com/statping-ng/statping-ng v0.90.64/go.mod h1:lbyNPB73IjWtnommV4wSejYfgUT1yLhhqelMjl1ZBb8= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1 h1:2vfRuCMp5sSVIDSqO8oNnWJq7mPa6KVP3iPIwFBuy8A= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= diff --git a/install.sh b/install.sh index 017140d1..ad6f7fc3 100755 --- a/install.sh +++ b/install.sh @@ -12,7 +12,7 @@ cyan="\033[36m" white="\033[37m" gpg_key=64B9C6AAE2D55278 gpgurl=https://statping.com/statping.gpg -repo=https://github.com/adamboutcher/statping-ng +repo=https://github.com/statping-ng/statping-ng statping_get_tarball() { fext='tar.gz' @@ -55,9 +55,9 @@ statping_brew_install() { if [[ -z "$(command -v brew --version)" ]]; then printf "${white}Using Brew to install!$reset\n" printf "${yellow}---> brew tap statping/statping$reset\n" - brew tap statping/statping + brew tap statping-ng/statping-ng printf "${yellow}---> brew install statping$reset\n" - brew install statping + brew install statping-ng printf "${green}Brew installation is complete!$reset\n" printf "${yellow}You can use 'brew upgrade' to upgrade Statping next time.$reset\n" else diff --git a/types/doc.go b/types/doc.go index e4178e2e..a8ebaf11 100644 --- a/types/doc.go +++ b/types/doc.go @@ -1,4 +1,4 @@ // Package types contains all of the structs for objects in Statping including services, hits, failures, Core, and others. // -// More info on: https://github.com/statping/statping +// More info on: https://github.com/statping-ng/statping-ng package types diff --git a/types/services/samples.go b/types/services/samples.go index 00ba242e..41541b26 100644 --- a/types/services/samples.go +++ b/types/services/samples.go @@ -83,7 +83,7 @@ func Samples() error { s2 := &Service{ Name: "Statping Github", - Domain: "https://github.com/statping/statping", + Domain: "https://github.com/statping-ng/statping-ng", ExpectedStatus: 200, Interval: 30, Type: "http", diff --git a/types/services/services_test.go b/types/services/services_test.go index 43b2d94e..c24c2265 100644 --- a/types/services/services_test.go +++ b/types/services/services_test.go @@ -595,7 +595,7 @@ services: <<: *tcpservice - name: Statping Github - domain: https://github.com/statping/statping + domain: https://github.com/statping-ng/statping-ng <<: *httpservice` err := utils.SaveFile(utils.Directory+"/services.yml", []byte(file)) diff --git a/utils/utils_test.go b/utils/utils_test.go index 2880d69a..99d4d7db 100644 --- a/utils/utils_test.go +++ b/utils/utils_test.go @@ -34,7 +34,7 @@ func TestInitLogs(t *testing.T) { } func TestDir(t *testing.T) { - assert.Contains(t, Directory, "statping/statping") + assert.Contains(t, Directory, "statping-ng/statping-ng") } func TestCommand(t *testing.T) {