diff --git a/.gitignore b/.gitignore index 54634cc..9b9ae8c 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ *.dll *.so *.dylib +sshfp-updater # Test binary, built with `go test -c` *.test diff --git a/Dockerfile b/Dockerfile index 3fffc02..d153919 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,17 +4,17 @@ FROM golang:1.18-alpine AS builder WORKDIR /app COPY . . RUN go mod vendor -RUN go build -mod vendor -o ./infra-sshfp-cf +RUN go build -mod vendor -o ./sshfp-updater FROM alpine:3.16.0 ARG REVISION=bf6021c8bb34394a70ed49c7e816b0aee4140992 LABEL org.opencontainers.image.authors="artur@status.im" -LABEL org.opencontainers.image.source="https://github.com/status-im/sshfp-generator" +LABEL org.opencontainers.image.source="https://github.com/status-im/sshfp-updater" LABEL org.opencontainers.image.revision=${REVISION} WORKDIR /root -COPY --from=builder /app/infra-sshfp-cf ./ +COPY --from=builder /app/sshfp-updater ./ -ENTRYPOINT [ "./infra-sshfp-cf" ] +ENTRYPOINT [ "./sshfp-updater" ] diff --git a/README.md b/README.md index ec39758..b40d10f 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ It's possible to create json formatted config file (example in `testcfg`) As it has been designed to work with `consul watches` passing proper .json file to STDIN is required. Ex: -`cat watches.dump | ./infra-sshfp-cf` +`cat watches.dump | ./sshfp-updater` ## Current state - CloudFlare integration is fully implemented diff --git a/cloudflare/interface.go b/cloudflare/interface.go index 65f7e19..c3c8c67 100644 --- a/cloudflare/interface.go +++ b/cloudflare/interface.go @@ -1,7 +1,7 @@ package cloudflare import ( - "infra-sshfp-cf/sshfp" + "sshfp-updater/sshfp" "github.com/cloudflare/cloudflare-go" ) diff --git a/cloudflare/service.go b/cloudflare/service.go index 5f470cd..f990631 100644 --- a/cloudflare/service.go +++ b/cloudflare/service.go @@ -3,7 +3,7 @@ package cloudflare import ( "errors" "fmt" - "infra-sshfp-cf/sshfp" + "sshfp-updater/sshfp" "github.com/cloudflare/cloudflare-go" "github.com/sirupsen/logrus" diff --git a/go.mod b/go.mod index 6651aef..ab1abfa 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module infra-sshfp-cf +module sshfp-updater go 1.18 diff --git a/main.go b/main.go index 0093f5b..174fa4e 100644 --- a/main.go +++ b/main.go @@ -3,13 +3,13 @@ package main import ( "bufio" "bytes" - "infra-sshfp-cf/cloudflare" - "infra-sshfp-cf/config" - "infra-sshfp-cf/consul" - "infra-sshfp-cf/sshfp" - "infra-sshfp-cf/statestore" "os" "os/exec" + "sshfp-updater/cloudflare" + "sshfp-updater/config" + "sshfp-updater/consul" + "sshfp-updater/sshfp" + "sshfp-updater/statestore" "strings" "github.com/sirupsen/logrus"