Skip to content

Commit

Permalink
fix: multiple tags in build command (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
micahvdk committed May 5, 2022
1 parent 031f7bf commit aa06f57
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
14 changes: 13 additions & 1 deletion .circleci/test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,18 @@ workflows:
docker-password: DOCKER_PASS
update-description: true
filters: *filters
- docker/publish:
name: publish-docker-multiple-tags
executor: docker-latest
context: CPE-orb-docker-testing
use-remote-docker: true
dockerfile: test.Dockerfile
image: cpeorbtesting/docker-orb-test
tag: $CIRCLE_SHA1,$CIRCLE_BUILD_NUM
docker-username: DOCKER_USER
docker-password: DOCKER_PASS
use-docker-credentials-store: true
filters: *filters
# end docker/publish

# begin test-install-docker-tools
Expand Down Expand Up @@ -429,4 +441,4 @@ executors:
image: ubuntu-2004:202010-01
machine-latest:
machine:
image: ubuntu-2004:current
image: ubuntu-2004:current
9 changes: 7 additions & 2 deletions src/scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ fi
# The context must be the last argument.
build_args+=("$PARAM_DOCKER_CONTEXT")

old_ifs="$IFS"
IFS=' '

set -x
docker build "${build_args[@]}"
set +x
docker build ${build_args[*]}
set +x

IFS="$old_ifs"

0 comments on commit aa06f57

Please sign in to comment.