Skip to content

Commit fc4c286

Browse files
committed
Fix usage of pipeline parameters
1 parent b2a4ddc commit fc4c286

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
- run: |
5252
set -u
5353
version=${CIRCLE_TAG:-}
54-
for cmd in ${cmds}; do
54+
for cmd in << pipeline.parameters.cmds >>; do
5555
GOOS=linux GOARCH=amd64 go build -o ./release/${cmd}_${version}_linux_amd64 ./cmd/${cmd}
5656
GOOS=linux GOARCH=arm64 go build -o ./release/${cmd}_${version}_linux_arm64 ./cmd/${cmd}
5757
GOOS=linux GOARCH=arm go build -o ./release/${cmd}_${version}_linux_arm ./cmd/${cmd}
@@ -85,7 +85,7 @@ jobs:
8585
- setup_remote_docker:
8686
version: 20.10.18
8787
- run: |
88-
for cmd in ${cmds}; do
88+
for cmd in << pipeline.parameters.cmds >>; do
8989
docker build -f ./cmd/${cmd}/Dockerfile -t robocupssl/${cmd}:latest .
9090
done
9191
@@ -101,7 +101,7 @@ jobs:
101101
# Parse version from tag (removing 'v' prefix)
102102
TAG=${CIRCLE_TAG:1}
103103
TAG=${TAG:-latest}
104-
for cmd in ${cmds}; do
104+
for cmd in << pipeline.parameters.cmds >>; do
105105
docker build -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}

0 commit comments

Comments
 (0)