Skip to content

Commit cc47c17

Browse files
authored
Merge pull request #31 from WorldBank-Transport/develop
Fix small bugs
2 parents da53fa1 + 4698529 commit cc47c17

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.circleci/config.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ jobs:
7171
else
7272
# Push tag to Github
7373
git push origin ${VERSION}
74+
fi
7475
7576
- run:
7677
name: Build base Docker image ram-tools
@@ -86,7 +87,7 @@ jobs:
8687
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWD
8788
8889
echo Pushing image to Docker Hub with ${VERSION} tag
89-
docker tag ram-vt ${DOCKER_ORG}/${DOCKER_IMAGE}:${VERSION}
90+
docker tag ${DOCKER_IMAGE} ${DOCKER_ORG}/${DOCKER_IMAGE}:${VERSION}
9091
docker push ${DOCKER_ORG}/${DOCKER_IMAGE}:${VERSION}
9192
9293
deploy-analysis-prod:
@@ -112,7 +113,7 @@ jobs:
112113
# Grab version from package.json and prepend with ram-analysis-v (ram-analysis-v0.5.0)
113114
# Prepending it with the container is hacky, but needed because this
114115
# repo holds and versions two containers.
115-
VERSION=${DOCKER_IMAGE}-v$(grep -m1 version ram-vt/package.json | awk -F: '{ print $2 }' | sed 's/[", ]//g')
116+
VERSION=${DOCKER_IMAGE}-v$(grep -m1 version ram-analysis/package.json | awk -F: '{ print $2 }' | sed 's/[", ]//g')
116117
117118
# Attempt to add a git tag based on version in package.json. If
118119
# the tag already exists, git will fail and stop the build.
@@ -123,6 +124,7 @@ jobs:
123124
else
124125
# Push tag to Github
125126
git push origin ${VERSION}
127+
fi
126128
127129
- run:
128130
name: Build base Docker image ram-tools
@@ -138,7 +140,7 @@ jobs:
138140
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWD
139141
140142
echo Pushing image to Docker Hub with ${VERSION} tag
141-
docker tag ram-vt ${DOCKER_ORG}/${DOCKER_IMAGE}:${VERSION}
143+
docker tag ${DOCKER_IMAGE} ${DOCKER_ORG}/${DOCKER_IMAGE}:${VERSION}
142144
docker push ${DOCKER_ORG}/${DOCKER_IMAGE}:${VERSION}
143145
144146
workflows:

0 commit comments

Comments
 (0)