diff --git a/Dockerfile b/Dockerfile index 3d8156c..c2a5b57 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,11 +3,13 @@ FROM image-registry.openshift-image-registry.svc:5000/openshift/golang:latest as WORKDIR /build ADD . /build/ -RUN export GARCH="$(uname -m)" && if [[ ${GARCH} == "x86_64" ]]; then export GARCH="amd64"; fi && GOOS=linux GOARCH=${GARCH} CGO_ENABLED=0 go build -mod=vendor -o api-server . + +RUN mkdir /tmp/cache +RUN CGO_ENABLED=0 GOCACHE=/tmp/cache go build -mod=vendor -v -o /tmp/api-server . FROM scratch WORKDIR /app -COPY --from=builder /build/api-server /app/api-server +COPY --from=builder /tmp/api-server /app/api-server CMD [ "/app/api-server" ] diff --git a/OWNERS b/OWNERS new file mode 100644 index 0000000..44e6592 --- /dev/null +++ b/OWNERS @@ -0,0 +1,9 @@ +# The OWNERS file is used by prow to automatically merge approved PRs. + +approvers: +- chmouel +- vdemeester +- nikhil-thomas +- piyush-garg +- savitaashture +- pradeepitm12 diff --git a/go.mod b/go.mod index 2beef7e..2900922 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,5 @@ -module github.com/sthaha/vote-api-server +module github.com/openshift/pipelines-vote-api -go 1.13 +go 1.14 require github.com/gin-gonic/gin v1.4.0 diff --git a/vendor/modules.txt b/vendor/modules.txt index cd18028..706d12a 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1,6 +1,7 @@ # github.com/gin-contrib/sse v0.0.0-20190301062529-5545eab6dad3 github.com/gin-contrib/sse # github.com/gin-gonic/gin v1.4.0 +## explicit github.com/gin-gonic/gin github.com/gin-gonic/gin/binding github.com/gin-gonic/gin/internal/json