From 1d6053e5283477351e2713e6f5d7096f90908d99 Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Fri, 28 Jun 2024 06:49:19 +0000 Subject: [PATCH] chore(main): rename cmd/updater to cmd/ddns-updater --- .github/CONTRIBUTING.md | 2 +- .github/workflows/configs/.goreleaser.yaml | 2 +- Dockerfile | 2 +- cmd/{updater => ddns-updater}/main.go | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename cmd/{updater => ddns-updater}/main.go (100%) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index bf28b504d..360284a4d 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -50,7 +50,7 @@ You might want to use an editor such as [Visual Studio Code](https://code.visual - Test the code: `go test ./...` - Lint the code `golangci-lint run` -- Build the program: `go build -o app cmd/updater/main.go` +- Build the program: `go build -o app cmd/ddns-updater/main.go` - Build the Docker image (tests and lint included): `docker build -t qmcgaw/ddns-updater .` - Run the Docker container: `docker run -it --rm -v /yourpath/data:/updater/data qmcgaw/ddns-updater` diff --git a/.github/workflows/configs/.goreleaser.yaml b/.github/workflows/configs/.goreleaser.yaml index c18981f45..da43bd723 100644 --- a/.github/workflows/configs/.goreleaser.yaml +++ b/.github/workflows/configs/.goreleaser.yaml @@ -2,7 +2,7 @@ before: hooks: - go mod download builds: - - main: ./cmd/updater/main.go + - main: ./cmd/ddns-updater/main.go flags: - -trimpath env: diff --git a/Dockerfile b/Dockerfile index cf60ed146..f4ca8e064 100644 --- a/Dockerfile +++ b/Dockerfile @@ -62,7 +62,7 @@ RUN GOARCH="$(xcputranslate translate -targetplatform ${TARGETPLATFORM} -field a -X 'main.version=$VERSION' \ -X 'main.date=$CREATED' \ -X 'main.commit=$COMMIT' \ - " -o app cmd/updater/main.go + " -o app cmd/ddns-updater/main.go FROM scratch EXPOSE 8000 diff --git a/cmd/updater/main.go b/cmd/ddns-updater/main.go similarity index 100% rename from cmd/updater/main.go rename to cmd/ddns-updater/main.go