rename infra-sshfp-cf to sshfp-updater
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
16bc968e21
commit
00d135e3a0
|
@ -4,6 +4,7 @@
|
|||
*.dll
|
||||
*.so
|
||||
*.dylib
|
||||
sshfp-updater
|
||||
|
||||
# Test binary, built with `go test -c`
|
||||
*.test
|
||||
|
|
|
@ -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" ]
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package cloudflare
|
||||
|
||||
import (
|
||||
"infra-sshfp-cf/sshfp"
|
||||
"sshfp-updater/sshfp"
|
||||
|
||||
"github.com/cloudflare/cloudflare-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"
|
||||
|
|
10
main.go
10
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"
|
||||
|
|
Loading…
Reference in New Issue