Skip to content
Snippets Groups Projects
Commit c109d8fb authored by scott.wang's avatar scott.wang
Browse files

Add ci used current commit id

parent b6a5888e
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,7 @@ install: true
# define ci-stage
script:
- COMMITID=$(git rev-parse HEAD)
# license-check
# start zookeeper registry insecure listen in [:]:2181
- echo 'start license check'
......@@ -31,8 +32,8 @@ script:
# start zookeeper registry insecure listen in [:]:2181
- docker run -d --network host zookeeper
- ROOTDIR=$(pwd)
- cd ./test/integrate/dubbo/go-client && docker build . -t ci-consumer && cd $ROOTDIR
- cd ./test/integrate/dubbo/go-server && docker build . -t ci-provider && cd $ROOTDIR
- cd ./test/integrate/dubbo/go-client && docker build . -t ci-consumer --build-arg COMMITID=${COMMITID} && cd $ROOTDIR
- cd ./test/integrate/dubbo/go-server && docker build . -t ci-provider --build-arg COMMITID=${COMMITID} && cd $ROOTDIR
- docker run -d --network host ci-provider
- docker run -it --network host ci-consumer
......
......@@ -7,8 +7,12 @@ WORKDIR /go/src/github.com/apache/dubbo-go/test/integrate/dubbo/go-client
ENV CONF_CONSUMER_FILE_PATH "client.yml"
ENV APP_LOG_CONF_FILE "log.yml"
ARG COMMITID
ADD . /go/src/github.com/apache/dubbo-go/test/integrate/dubbo/go-client
RUN go get -u github.com/apache/dubbo-go@ARG
RUN go install github.com/apache/dubbo-go/test/integrate/dubbo/go-client
CMD go-client
\ No newline at end of file
......@@ -7,8 +7,12 @@ WORKDIR /go/src/github.com/apache/dubbo-go/test/integrate/dubbo/go-server
ENV CONF_PROVIDER_FILE_PATH "server.yml"
ENV APP_LOG_CONF_FILE "log.yml"
ARG COMMITID
ADD . /go/src/github.com/apache/dubbo-go/test/integrate/dubbo/go-server
RUN go get -u github.com/apache/dubbo-go@ARG
RUN go install github.com/apache/dubbo-go/test/integrate/dubbo/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