chore(main): rename cmd/updater to cmd/ddns-updater

This commit is contained in:
Quentin McGaw
2024-06-28 06:49:19 +00:00
parent c345a788e3
commit 1d6053e528
4 changed files with 3 additions and 3 deletions

View File

@@ -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`

View File

@@ -2,7 +2,7 @@ before:
hooks:
- go mod download
builds:
- main: ./cmd/updater/main.go
- main: ./cmd/ddns-updater/main.go
flags:
- -trimpath
env:

View File

@@ -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