-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #79 from blakeroberts-wk/INFENG-6103-allow-no-orig…
…in-header-requests INFENG-6103 allow no origin header requests
- Loading branch information
Showing
9 changed files
with
85 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
.idea | ||
vendor/ | ||
glide.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
language: go | ||
|
||
go: | ||
- 1.3 | ||
- 1.4 | ||
- "1.5" | ||
- "1.10" | ||
- tip | ||
|
||
before_install: go get golang.org/x/tools/cmd/cover | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
FROM golang:1.10.3-alpine3.8 | ||
|
||
## github credentials | ||
RUN apk add --update bash curl git openssh py-pip | ||
ARG GIT_SSH_KEY | ||
RUN git config --global [email protected]:.insteadOf https://github.com/ | ||
RUN mkdir ~/.ssh; ssh-keyscan -t rsa github.com > ~/.ssh/known_hosts | ||
RUN chmod -R 700 ~/.ssh; echo "${GIT_SSH_KEY}" > ~/.ssh/id_rsa; chmod 600 ~/.ssh/id_rsa | ||
RUN eval "$(ssh-agent -s)" && ssh-add ~/.ssh/id_rsa | ||
|
||
#install glide | ||
RUN go get -u github.com/Masterminds/glide | ||
|
||
WORKDIR /go/src/github.com/Workiva/go-rest | ||
COPY . /go/src/github.com/Workiva/go-rest | ||
|
||
# install dependencies | ||
RUN glide install | ||
|
||
# run tests | ||
RUN go test $(glide novendor) | ||
|
||
# artifacts | ||
ARG BUILD_ARTIFACTS_AUDIT=/go/src/github.com/Workiva/go-rest/glide.lock | ||
|
||
# no-op container | ||
FROM scratch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package: github.com/Workiva/go-rest | ||
import: | ||
- package: github.com/gorilla/context | ||
version: ~1.1.1 | ||
- package: github.com/gorilla/mux | ||
version: ~1.6.2 | ||
- package: github.com/hoisie/mustache | ||
version: 6375acf62c69d9d3ad20fd0599d82ca94ea12284 | ||
- package: golang.org/x/net | ||
subpackages: | ||
- context | ||
testImport: | ||
- package: github.com/stretchr/testify | ||
version: ~1.2.2 | ||
subpackages: | ||
- assert | ||
- mock | ||
- package: gopkg.in/yaml.v1 | ||
version: ~2.2.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.