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 86
86
version : 20.10.18
87
87
- run : |
88
88
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 .
90
90
done
91
91
92
92
publish_docker :
@@ -102,7 +102,7 @@ jobs:
102
102
TAG=${CIRCLE_TAG:1}
103
103
TAG=${TAG:-latest}
104
104
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} .
106
106
docker login -u "${DOCKER_HUB_USERNAME}" -p "${DOCKER_HUB_PASSWORD}"
107
107
docker push robocupssl/${cmd}:${TAG}
108
108
done
@@ -127,7 +127,8 @@ workflows:
127
127
filters : { branches: { ignore: /.*/ }, tags: { only: /^v.*/ } }
128
128
docker :
129
129
jobs :
130
- - build_docker
130
+ - build_docker :
131
+ filters : { branches: { ignore: master } }
131
132
- publish_docker :
132
133
context : docker hub
133
134
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
9
9
WORKDIR work
10
10
COPY . .
11
11
COPY --from=build_node frontend/dist frontend/dist
12
- RUN go install -v ./cmd/${cmd}
12
+ RUN go install ./cmd/${cmd}
13
13
14
14
# Start fresh from a smaller image
15
15
FROM alpine:3
16
- ARG cmd
16
+ ARG cmd=ssl-game-controller
17
17
COPY --from=build_go /go/bin/${cmd} /app/${cmd}
18
18
RUN mkdir -p config && chown -R 1000: config
19
19
USER 1000
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ RUN go install -v ./cmd/${cmd}
6
6
7
7
# Start fresh from a smaller image
8
8
FROM alpine:3
9
- ARG cmd
9
+ ARG cmd=ssl-ref-client
10
10
COPY --from=build_go /go/bin/${cmd} /app/${cmd}
11
11
USER 1000
12
12
ENV COMMAND="/app/${cmd}"
You can’t perform that action at this time.
0 commit comments