Skip to content

Commit

Permalink
chore(main): rename cmd/updater to cmd/ddns-updater
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Jun 28, 2024
1 parent c345a78 commit 1d6053e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/configs/.goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ before:
hooks:
- go mod download
builds:
- main: ./cmd/updater/main.go
- main: ./cmd/ddns-updater/main.go
flags:
- -trimpath
env:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
File renamed without changes.

0 comments on commit 1d6053e

Please sign in to comment.