Skip to content

Commit

Permalink
Merge pull request #41 from blinklabs-io/feat/rename-cdnsd
Browse files Browse the repository at this point in the history
feat: rename to cdnsd
  • Loading branch information
wolf31o2 authored Sep 21, 2023
2 parents 90889f6 + 79cd3a1 commit 502787a
Show file tree
Hide file tree
Showing 12 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.git/
.github/
Dockerfule
chnsd
cdnsd
README.md
2 changes: 1 addition & 1 deletion .github/workflows/ci-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
paths: ['Dockerfile','cmd/**','docs/**','internal/**','go.*','.github/workflows/ci-docker.yml']

env:
GHCR_IMAGE_NAME: ghcr.io/blinklabs-io/chnsd
GHCR_IMAGE_NAME: ghcr.io/blinklabs-io/cdnsd

jobs:
docker:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,16 @@ jobs:
- name: Upload release asset
if: startsWith(github.ref, 'refs/tags/')
run: |
_filename=chnsd-${{ env.RELEASE_TAG }}-${{ matrix.os }}-${{ matrix.arch }}
_filename=cdnsd-${{ env.RELEASE_TAG }}-${{ matrix.os }}-${{ matrix.arch }}
if [[ ${{ matrix.os }} == windows ]]; then
_filename=${_filename}.exe
fi
mv chnsd ${_filename}
mv cdnsd ${_filename}
curl \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Content-Type: application/octet-stream" \
--data-binary @${_filename} \
https://uploads.github.com/repos/${{ github.repository_owner }}/chnsd/releases/${{ needs.create-draft-release.outputs.RELEASE_ID }}/assets?name=${_filename}
https://uploads.github.com/repos/${{ github.repository_owner }}/cdnsd/releases/${{ needs.create-draft-release.outputs.RELEASE_ID }}/assets?name=${_filename}
build-images:
runs-on: ubuntu-latest
Expand All @@ -92,7 +92,7 @@ jobs:
uses: docker/metadata-action@v4
with:
images: |
blinklabs/chnsd
blinklabs/cdnsd
ghcr.io/${{ github.repository }}
tags: |
# Only version, no revision
Expand All @@ -114,7 +114,7 @@ jobs:
with:
username: blinklabs
password: ${{ secrets.DOCKER_PASSWORD }}
repository: blinklabs/chnsd
repository: blinklabs/cdnsd
readme-filepath: ./README.md
short-description: "DNS resolver for Handshake SLDs on Cardano"

Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*.dll
*.so
*.dylib
/chnsd
/cdnsd

# Test binary, built with `go test -c`
*.test
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ WORKDIR /code
COPY . .
RUN make build

FROM cgr.dev/chainguard/glibc-dynamic AS chnsd
COPY --from=build /code/chnsd /bin/
ENTRYPOINT ["chnsd"]
FROM cgr.dev/chainguard/glibc-dynamic AS cdnsd
COPY --from=build /code/cdnsd /bin/
ENTRYPOINT ["cdnsd"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# chnsd
# cdnsd
Resolver for .cardano Handshake domains
10 changes: 5 additions & 5 deletions cmd/chnsd/main.go → cmd/cdnsd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ import (
_ "net/http/pprof"
"os"

"github.com/blinklabs-io/chnsd/internal/config"
"github.com/blinklabs-io/chnsd/internal/dns"
"github.com/blinklabs-io/chnsd/internal/indexer"
"github.com/blinklabs-io/chnsd/internal/logging"
"github.com/blinklabs-io/chnsd/internal/state"
"github.com/blinklabs-io/cdnsd/internal/config"
"github.com/blinklabs-io/cdnsd/internal/dns"
"github.com/blinklabs-io/cdnsd/internal/indexer"
"github.com/blinklabs-io/cdnsd/internal/logging"
"github.com/blinklabs-io/cdnsd/internal/state"
)

var cmdlineFlags struct {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/blinklabs-io/chnsd
module github.com/blinklabs-io/cdnsd

go 1.20

Expand Down
6 changes: 3 additions & 3 deletions internal/dns/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"net"
"strings"

"github.com/blinklabs-io/chnsd/internal/config"
"github.com/blinklabs-io/chnsd/internal/logging"
"github.com/blinklabs-io/chnsd/internal/state"
"github.com/blinklabs-io/cdnsd/internal/config"
"github.com/blinklabs-io/cdnsd/internal/logging"
"github.com/blinklabs-io/cdnsd/internal/state"

"github.com/miekg/dns"
)
Expand Down
6 changes: 3 additions & 3 deletions internal/indexer/indexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package indexer
import (
"encoding/hex"

"github.com/blinklabs-io/chnsd/internal/config"
"github.com/blinklabs-io/chnsd/internal/logging"
"github.com/blinklabs-io/chnsd/internal/state"
"github.com/blinklabs-io/cdnsd/internal/config"
"github.com/blinklabs-io/cdnsd/internal/logging"
"github.com/blinklabs-io/cdnsd/internal/state"

"github.com/blinklabs-io/gouroboros/cbor"
ocommon "github.com/blinklabs-io/gouroboros/protocol/common"
Expand Down
2 changes: 1 addition & 1 deletion internal/logging/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"log"
"time"

"github.com/blinklabs-io/chnsd/internal/config"
"github.com/blinklabs-io/cdnsd/internal/config"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
)
Expand Down
4 changes: 2 additions & 2 deletions internal/state/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"strconv"
"strings"

"github.com/blinklabs-io/chnsd/internal/config"
"github.com/blinklabs-io/chnsd/internal/logging"
"github.com/blinklabs-io/cdnsd/internal/config"
"github.com/blinklabs-io/cdnsd/internal/logging"
"github.com/dgraph-io/badger/v4"
)

Expand Down

0 comments on commit 502787a

Please sign in to comment.