Skip to content

Commit

Permalink
fixing circle file
Browse files Browse the repository at this point in the history
  • Loading branch information
vsoch committed Aug 18, 2018
1 parent eb4cca1 commit 90685a3
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,9 @@ dockerenv: &dockerenv
DOCKERFILE=Dockerfile
fi
echo "Container name is ${CONTAINER_NAME}"
# If not set, define REPO_NAME
if [ ! -n "${REPO_NAME:-}" ]; then
LOCAL_REPO="${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}"
REPO_NAME=/tmp/src
echo "Repository name (REPO_NAME) is not defined, will build ${LOCAL_REPO} in ${REPO_NAME}"
else
echo "Repository name found defined for build: ${REPO_NAME}"
fi
# export to bash environment
echo "export CONTAINER_NAME=${CONTAINER_NAME}" >> ${BASH_ENV}
echo "export DOCKER_TAG=${DOCKER_TAG}" >> ${BASH_ENV}
echo "export REPO_NAME=${REPO_NAME}" >> ${BASH_ENV}
echo "export DOCKERFILE=${DOCKERFILE}" >> ${BASH_ENV}
cat ${BASH_ENV}
Expand Down Expand Up @@ -138,6 +129,11 @@ jobs:
- run: *dockerload
- run: *dockerbuild
- run: *dockersave
- persist_to_workspace:
root: /tmp
paths:
- src
- cache

update_cache:
<<: *defaults
Expand Down

0 comments on commit 90685a3

Please sign in to comment.