File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 8686 version : 20.10.18
8787 - run : |
8888 for cmd in << pipeline.parameters.cmds >>; do
89- docker build -f ./cmd/${cmd}/Dockerfile -t robocupssl/${cmd}:latest .
89+ docker build --build-arg cmd=${cmd} - f ./cmd/${cmd}/Dockerfile -t robocupssl/${cmd}:latest .
9090 done
9191
9292 publish_docker :
@@ -102,7 +102,7 @@ jobs:
102102 TAG=${CIRCLE_TAG:1}
103103 TAG=${TAG:-latest}
104104 for cmd in << pipeline.parameters.cmds >>; do
105- docker build -f ./cmd/${cmd}/Dockerfile -t robocupssl/${cmd}:${TAG} .
105+ docker build --build-arg cmd=${cmd} - f ./cmd/${cmd}/Dockerfile -t robocupssl/${cmd}:${TAG} .
106106 docker login -u "${DOCKER_HUB_USERNAME}" -p "${DOCKER_HUB_PASSWORD}"
107107 docker push robocupssl/${cmd}:${TAG}
108108 done
@@ -127,7 +127,8 @@ workflows:
127127 filters : { branches: { ignore: /.*/ }, tags: { only: /^v.*/ } }
128128 docker :
129129 jobs :
130- - build_docker
130+ - build_docker :
131+ filters : { branches: { ignore: master } }
131132 - publish_docker :
132133 context : docker hub
133134 filters : { branches: { only: master }, tags: { only: /^v.*/ } }
Original file line number Diff line number Diff line change @@ -9,11 +9,11 @@ ARG cmd=ssl-game-controller
99WORKDIR work
1010COPY . .
1111COPY --from=build_node frontend/dist frontend/dist
12- RUN go install -v ./cmd/${cmd}
12+ RUN go install ./cmd/${cmd}
1313
1414# Start fresh from a smaller image
1515FROM alpine:3
16- ARG cmd
16+ ARG cmd=ssl-game-controller
1717COPY --from=build_go /go/bin/${cmd} /app/${cmd}
1818RUN mkdir -p config && chown -R 1000: config
1919USER 1000
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ RUN go install -v ./cmd/${cmd}
66
77# Start fresh from a smaller image
88FROM alpine:3
9- ARG cmd
9+ ARG cmd=ssl-ref-client
1010COPY --from=build_go /go/bin/${cmd} /app/${cmd}
1111USER 1000
1212ENV COMMAND="/app/${cmd}"
You can’t perform that action at this time.
0 commit comments