Skip to content
Snippets Groups Projects
Commit cae5ee48 authored by 邹毅贤's avatar 邹毅贤
Browse files

update script

parent 13af9518
No related branches found
No related tags found
No related merge requests found
...@@ -29,10 +29,10 @@ ADD . /go/src/github.com/apache/dubbo-go/test/integrate/dubbo/go-client ...@@ -29,10 +29,10 @@ ADD . /go/src/github.com/apache/dubbo-go/test/integrate/dubbo/go-client
# update dubbo-go to current commit id # update dubbo-go to current commit id
RUN test ${PR_ORIGIN_REPO} && echo "github.com/apache/dubbo-go will be replace to github.com/${PR_ORIGIN_REPO}@${PR_ORIGIN_COMMITID}" || echo 'go get github.com/apache/dubbo-go@develop' RUN test ${PR_ORIGIN_REPO} && echo "github.com/apache/dubbo-go will be replace to github.com/${PR_ORIGIN_REPO}@${PR_ORIGIN_COMMITID}" || echo 'go get github.com/apache/dubbo-go@develop'
RUN test ${PR_ORIGIN_REPO} && go mod edit -replace=github.com/apache/dubbo-go=github.com/${PR_ORIGIN_REPO}@${PR_ORIGIN_COMMITID} || go mod tidy || go get -u github.com/apache/dubbo-go@develop RUN test ${PR_ORIGIN_REPO} && go mod edit -replace=github.com/apache/dubbo-go=github.com/${PR_ORIGIN_REPO}@${PR_ORIGIN_COMMITID} || go get -u github.com/apache/dubbo-go@develop
ENV GO111MODULE on ENV GO111MODULE on
RUN go install github.com/apache/dubbo-go/test/integrate/dubbo/go-client RUN go mod tidy || go install github.com/apache/dubbo-go/test/integrate/dubbo/go-client
CMD go-client CMD go-client
\ No newline at end of file
...@@ -28,10 +28,10 @@ ARG PR_ORIGIN_COMMITID ...@@ -28,10 +28,10 @@ ARG PR_ORIGIN_COMMITID
ADD . /go/src/github.com/apache/dubbo-go/test/integrate/dubbo/go-server ADD . /go/src/github.com/apache/dubbo-go/test/integrate/dubbo/go-server
# update dubbo-go to current commit id # update dubbo-go to current commit id
RUN test ${PR_ORIGIN_REPO} && echo "github.com/apache/dubbo-go will be replace to github.com/${PR_ORIGIN_REPO}@${PR_ORIGIN_COMMITID}" || echo 'go get github.com/apache/dubbo-go@develop' RUN test ${PR_ORIGIN_REPO} && echo "github.com/apache/dubbo-go will be replace to github.com/${PR_ORIGIN_REPO}@${PR_ORIGIN_COMMITID}" || echo 'go get github.com/apache/dubbo-go@develop'
RUN test ${PR_ORIGIN_REPO} && go mod edit -replace=github.com/apache/dubbo-go=github.com/${PR_ORIGIN_REPO}@${PR_ORIGIN_COMMITID} || go mod tidy || go get -u github.com/apache/dubbo-go@develop RUN test ${PR_ORIGIN_REPO} && go mod edit -replace=github.com/apache/dubbo-go=github.com/${PR_ORIGIN_REPO}@${PR_ORIGIN_COMMITID} || go get -u github.com/apache/dubbo-go@develop
ENV GO111MODULE on ENV GO111MODULE on
RUN go install github.com/apache/dubbo-go/test/integrate/dubbo/go-server RUN go mod tidy || go install github.com/apache/dubbo-go/test/integrate/dubbo/go-server
CMD go-server CMD go-server
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment