Skip to content

Commit

Permalink
[feature] provide empty private key function for automated builds
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewwww committed Aug 22, 2023
1 parent ec3f04b commit 18ff901
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build/h_relay.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ COPY go.* .
RUN CGO_ENABLED=1 go mod download

COPY . .

# Private key is only used in automated testing
COPY ./config/private_key.go.example ./config/private_key.go
COPY ./config/test_private_key.go.example ./config/test_private_key.go

RUN CGO_ENABLED=1 go build

FROM alpine:3.18
Expand Down
5 changes: 5 additions & 0 deletions config/private_key.go.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package config

func GetPrivateKey() string {
return ""
}
5 changes: 5 additions & 0 deletions config/test_private_key.go.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package config

func GetTestPrivateKey() string {
return ""
}

0 comments on commit 18ff901

Please sign in to comment.