Skip to content

Commit

Permalink
Merge pull request #58 from alvinlin123/new-proj-structure
Browse files Browse the repository at this point in the history
Commit vendor directory and have the ubiquitous cmd directory
  • Loading branch information
roystchiang authored Mar 17, 2022
2 parents 8300e60 + 637642f commit b9458ff
Show file tree
Hide file tree
Showing 601 changed files with 264,119 additions and 11 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/CD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '1.14.0'
go-version: "1.14.0"

- name: Build
run: |
go get -d -v
go build -v .
go build -v ./cmd/aws-sigv4-proxy
- name: Run tests
run: go test -v ./...
13 changes: 5 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,15 @@ RUN apk --update add \

RUN mkdir /aws-sigv4-proxy
WORKDIR /aws-sigv4-proxy
COPY go.mod .
COPY go.sum .
COPY . .

RUN go env -w GOPROXY=direct
RUN go mod download
COPY . .

RUN CGO_ENABLED=0 GOOS=linux go build -o /go/bin/aws-sigv4-proxy
RUN CGO_ENABLED=0 GOOS=linux go build ./cmd/aws-sigv4-proxy

FROM alpine:latest
FROM alpine:3
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=build /go/bin/aws-sigv4-proxy /go/bin/aws-sigv4-proxy
COPY --from=build /aws-sigv4-proxy/aws-sigv4-proxy ./

ENTRYPOINT [ "/go/bin/aws-sigv4-proxy" ]
ENTRYPOINT [ "./aws-sigv4-proxy" ]

File renamed without changes.
1 change: 1 addition & 0 deletions handler/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ func TestHandler_ServeHTTP(t *testing.T) {
handler: &Handler{
ProxyClient: &mockProxyClient{
Response: &http.Response{
StatusCode: http.StatusOK,
Header: http.Header{
"test": []string{"header"},
},
Expand Down
27 changes: 27 additions & 0 deletions vendor/github.com/alecthomas/template/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions vendor/github.com/alecthomas/template/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b9458ff

Please sign in to comment.