Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Commit

Permalink
Merge pull request #14 from keylockerbv/feature/project-rename
Browse files Browse the repository at this point in the history
Rename project to secrethub-http-proxy
  • Loading branch information
florisvdg authored Mar 29, 2019
2 parents 1540e6f + d31f912 commit e2f7fd9
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Go
secrethub-proxy
secrethub-http-proxy
*.exe
*.exe~
*.dll
Expand Down
12 changes: 5 additions & 7 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
project_name: secrethub-proxy

builds:
- binary: "{{ .ProjectName }}"
main: ./cmd/secrethub-proxy/main.go
- binary: secrethub-http-proxy
main: ./cmd/secrethub-http-proxy/main.go
env:
- CGO_ENABLED=0
goos:
Expand All @@ -26,7 +24,7 @@ dockers:
goos: linux
goarch: amd64
binaries:
- secrethub-proxy
- secrethub-http-proxy
image_templates:
- "secrethubio/proxy:{{ .Version }}"
- "secrethubio/proxy:latest"
- "secrethub/http-proxy:{{ .Version }}"
- "secrethub/http-proxy:latest"
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM alpine

COPY secrethub-proxy /usr/bin/secrethub-proxy
COPY secrethub-http-proxy /usr/bin/secrethub-http-proxy
RUN apk add --no-cache ca-certificates && update-ca-certificates

EXPOSE 8080

CMD secrethub-proxy -C ${SECRETHUB_CREDENTIAL:-$(cat /secrethub/credential)} -P ${SECRETHUB_CREDENTIAL_PASSPHRASE} -h 0.0.0.0 -p 8080
CMD secrethub-http-proxy -C ${SECRETHUB_CREDENTIAL:-$(cat /secrethub/credential)} -P ${SECRETHUB_CREDENTIAL_PASSPHRASE} -h 0.0.0.0 -p 8080
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
build:
go build ./cmd/secrethub-proxy
go build ./cmd/secrethub-http-proxy
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"os/signal"
"syscall"

"github.com/keylockerbv/secrethub-proxy/pkg/restproxy"
"github.com/keylockerbv/secrethub-http-proxy/pkg/restproxy"
"github.com/secrethub/secrethub-go/pkg/secrethub"
)

Expand Down Expand Up @@ -67,10 +67,10 @@ func gracefulShutdown(proxy restproxy.ClientProxy) {
}

func exit(err error) {
fmt.Printf("secrethub-proxy: error: %v\n", err)
fmt.Printf("secrethub-http-proxy: error: %v\n", err)
os.Exit(1)
}

func log(message string) {
fmt.Printf("secrethub-proxy: %v\n", message)
fmt.Printf("secrethub-http-proxy: %v\n", message)
}
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/keylockerbv/secrethub-proxy
module github.com/keylockerbv/secrethub-http-proxy

require (
github.com/gorilla/mux v1.7.0
Expand Down

0 comments on commit e2f7fd9

Please sign in to comment.