From 89610d7276eafb2a214e9aca2a040c23d0f9eae7 Mon Sep 17 00:00:00 2001 From: Divanshu Chauhan Date: Tue, 6 Jun 2023 12:40:15 +0530 Subject: [PATCH] chore: move back to divideprojects --- .deepsource.toml | 13 +++++-------- .goreleaser.yaml | 40 ++++++++++++++++++++-------------------- Dockerfile | 2 +- LICENSE | 2 +- README.md | 6 +++--- app.json | 2 +- docker-compose.yml | 2 +- go.mod | 2 +- goreleaser.Dockerfile | 2 +- main.go | 6 +++--- 10 files changed, 37 insertions(+), 40 deletions(-) diff --git a/.deepsource.toml b/.deepsource.toml index 9fb3fb7..004cdd8 100644 --- a/.deepsource.toml +++ b/.deepsource.toml @@ -4,16 +4,13 @@ version = 1 name = "docker" enabled = true - [analyzers.meta] - dockerfile_paths = [ - "Dockerfile", - "Dockerfile.caprover" - ] +[analyzers.meta] +dockerfile_paths = ["Dockerfile", "goreleaser.Dockerfile"] [[analyzers]] name = "go" enabled = true - [analyzers.meta] - import_root = "github.com/divkix/RestrictChannelRobot" - dependencies_vendored = true +[analyzers.meta] +import_root = "github.com/divideprojects/RestrictChannelRobot" +dependencies_vendored = true diff --git a/.goreleaser.yaml b/.goreleaser.yaml index e43eccb..f1684b6 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -5,8 +5,8 @@ release: Welcome to this new release! footer: | Docker Images: - `docker.io/divkix/{{ .ProjectName }}:latest` - `ghcr.io/divkix/{{ .ProjectName }}:latest` + `docker.io/divideprojects/{{ .ProjectName }}:latest` + `ghcr.io/divideprojects/{{ .ProjectName }}:latest` before: hooks: - go mod tidy @@ -19,7 +19,7 @@ builds: goarch: - amd64 - arm64 - mod_timestamp: '{{ .CommitTimestamp }}' + mod_timestamp: "{{ .CommitTimestamp }}" flags: - -trimpath ldflags: @@ -27,7 +27,7 @@ builds: archives: - format: binary checksum: - name_template: 'checksums.txt' + name_template: "checksums.txt" snapshot: name_template: "{{ incpatch .Version }}-next" @@ -37,8 +37,8 @@ dockers: dockerfile: goreleaser.Dockerfile use: buildx image_templates: - - "docker.io/divkix/{{ .ProjectName }}:{{ .Tag }}-amd64" - - "ghcr.io/divkix/{{ .ProjectName }}:{{ .Tag }}-amd64" + - "docker.io/divideprojects/{{ .ProjectName }}:{{ .Tag }}-amd64" + - "ghcr.io/divideprojects/{{ .ProjectName }}:{{ .Tag }}-amd64" build_flag_templates: - "--platform=linux/amd64" - "--pull" @@ -51,8 +51,8 @@ dockers: dockerfile: goreleaser.Dockerfile use: buildx image_templates: - - "docker.io/divkix/{{ .ProjectName }}:{{ .Tag }}-arm64v8" - - "ghcr.io/divkix/{{ .ProjectName }}:{{ .Tag }}-arm64v8" + - "docker.io/divideprojects/{{ .ProjectName }}:{{ .Tag }}-arm64v8" + - "ghcr.io/divideprojects/{{ .ProjectName }}:{{ .Tag }}-arm64v8" build_flag_templates: - "--platform=linux/arm64/v8" - "--pull" @@ -63,21 +63,21 @@ dockers: docker_manifests: # docker hub - - name_template: "docker.io/divkix/{{ .ProjectName }}:{{ .Version }}" + - name_template: "docker.io/divideprojects/{{ .ProjectName }}:{{ .Version }}" image_templates: - - "docker.io/divkix/{{ .ProjectName }}:{{ .Tag }}-amd64" - - "docker.io/divkix/{{ .ProjectName }}:{{ .Tag }}-arm64v8" - - name_template: "docker.io/divkix/{{ .ProjectName }}:latest" + - "docker.io/divideprojects/{{ .ProjectName }}:{{ .Tag }}-amd64" + - "docker.io/divideprojects/{{ .ProjectName }}:{{ .Tag }}-arm64v8" + - name_template: "docker.io/divideprojects/{{ .ProjectName }}:latest" image_templates: - - "docker.io/divkix/{{ .ProjectName }}:{{ .Tag }}-amd64" - - "docker.io/divkix/{{ .ProjectName }}:{{ .Tag }}-arm64v8" + - "docker.io/divideprojects/{{ .ProjectName }}:{{ .Tag }}-amd64" + - "docker.io/divideprojects/{{ .ProjectName }}:{{ .Tag }}-arm64v8" # github container registry - - name_template: "ghcr.io/divkix/{{ .ProjectName }}:{{ .Version }}" + - name_template: "ghcr.io/divideprojects/{{ .ProjectName }}:{{ .Version }}" image_templates: - - "ghcr.io/divkix/{{ .ProjectName }}:{{ .Tag }}-amd64" - - "ghcr.io/divkix/{{ .ProjectName }}:{{ .Tag }}-arm64v8" - - name_template: "ghcr.io/divkix/{{ .ProjectName }}:latest" + - "ghcr.io/divideprojects/{{ .ProjectName }}:{{ .Tag }}-amd64" + - "ghcr.io/divideprojects/{{ .ProjectName }}:{{ .Tag }}-arm64v8" + - name_template: "ghcr.io/divideprojects/{{ .ProjectName }}:latest" image_templates: - - "ghcr.io/divkix/{{ .ProjectName }}:{{ .Tag }}-amd64" - - "ghcr.io/divkix/{{ .ProjectName }}:{{ .Tag }}-arm64v8" + - "ghcr.io/divideprojects/{{ .ProjectName }}:{{ .Tag }}-amd64" + - "ghcr.io/divideprojects/{{ .ProjectName }}:{{ .Tag }}-arm64v8" diff --git a/Dockerfile b/Dockerfile index e31fb9e..7a310ba 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,7 @@ CMD ["/RestrictChannelRobot"] LABEL org.opencontainers.image.authors="Divanshu Chauhan " LABEL org.opencontainers.image.url="https://divkix.me" -LABEL org.opencontainers.image.source="https://github.com/divkix/RestrictChannelRobot" +LABEL org.opencontainers.image.source="https://github.com/divideprojects/RestrictChannelRobot" LABEL org.opencontainers.image.title="Restrict Channel Robot" LABEL org.opencontainers.image.description="Official Restrict Channel Bot Docker Image" LABEL org.opencontainers.image.vendor="Divkix" diff --git a/LICENSE b/LICENSE index 7931d1d..ca15470 100644 --- a/LICENSE +++ b/LICENSE @@ -630,7 +630,7 @@ state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. RestrictChannelRobot - A Telegram bot, to ban anonymous channels in group. - Copyright (C) 2021 Divkix + Copyright (C) 2021-2023 Divkix This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published diff --git a/README.md b/README.md index c1cc18d..7770368 100644 --- a/README.md +++ b/README.md @@ -7,12 +7,12 @@ LICENSE Contributors Repo Size - Views + Views

- + DeepSource

@@ -35,7 +35,7 @@ Can be found on telegram as [@RestrictChannelRobot](https://telegram.dog/Restric ## Deploy via Heroku.

- Deploy + Deploy

## Support diff --git a/app.json b/app.json index 782f368..b38097e 100644 --- a/app.json +++ b/app.json @@ -11,7 +11,7 @@ "telegram anonymous channel", "telegram group" ], - "repository": "https://github.com/divkix/RestrictChannelRobot", + "repository": "https://github.com/divideprojects/RestrictChannelRobot", "website": "https://t.me/DivideProjects", "success_url": "https://t.me/DivideProjects", "env": { diff --git a/docker-compose.yml b/docker-compose.yml index 169508e..796b289 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,7 @@ version: '3' services: restrict-channel-bot: - image: ghcr.io/divkix/restrictchannelrobot:latest + image: ghcr.io/divideprojects/RestrictChannelRobot:latest restart: always container_name: restrict-channel-bot environment: diff --git a/go.mod b/go.mod index db017ea..3085a17 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/divkix/RestrictChannelRobot +module github.com/divideprojects/RestrictChannelRobot // +heroku goVersion go1.19 go 1.19 diff --git a/goreleaser.Dockerfile b/goreleaser.Dockerfile index 9d81a04..b4de21d 100644 --- a/goreleaser.Dockerfile +++ b/goreleaser.Dockerfile @@ -4,7 +4,7 @@ CMD ["/restrictchannelrobot"] LABEL org.opencontainers.image.authors="Divanshu Chauhan " LABEL org.opencontainers.image.url="https://divkix.me" -LABEL org.opencontainers.image.source="https://github.com/divkix/RestrictChannelRobot" +LABEL org.opencontainers.image.source="https://github.com/divideprojects/RestrictChannelRobot" LABEL org.opencontainers.image.title="Restrict Channel Robot" LABEL org.opencontainers.image.description="Official Restrict Channel Bot Docker Image" LABEL org.opencontainers.image.vendor="Divkix" diff --git a/main.go b/main.go index 1b1e570..72f071f 100644 --- a/main.go +++ b/main.go @@ -137,7 +137,7 @@ func start(bot *gotgbot.Bot, ctx *ext.Context) error { { { Text: "Source", - Url: "https://github.com/divkix/RestrictChannelRobot", + Url: "https://github.com/divideprojects/RestrictChannelRobot", }, }, }, @@ -218,7 +218,7 @@ func source(bot *gotgbot.Bot, ctx *ext.Context) error { text = fmt.Sprintf( "You can find my source code by here or by clicking the button below.", - "https://github.com/divkix/RestrictChannelRobot", + "https://github.com/divideprojects/RestrictChannelRobot", ) _, err := msg.Reply( @@ -232,7 +232,7 @@ func source(bot *gotgbot.Bot, ctx *ext.Context) error { { { Text: "Source Code", - Url: "https://github.com/divkix/RestrictChannelRobot", + Url: "https://github.com/divideprojects/RestrictChannelRobot", }, }, },