Skip to content
This repository has been archived by the owner on Mar 3, 2022. It is now read-only.

Commit

Permalink
ci: fix deploy job
Browse files Browse the repository at this point in the history
enable the deploy job for master and tag builds
  • Loading branch information
Adnan Abdulhussein committed Oct 23, 2017
1 parent 936e904 commit b1b2243
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@ jobs:
- deploy:
name: Publish Docker Image
command: |
if [ "${CIRCLE_BRANCH}" == "master" ]; then
if [ -n "${CIRCLE_TAG}" ]; then
if [[ "${CIRCLE_BRANCH}" == "master" || -n "${CIRCLE_TAG}" ]]; then
if [[ -n "${CIRCLE_TAG}" ]]; then
docker tag kubeapps/ratesvc:latest kubeapps/ratesvc:${CIRCLE_TAG}
fi
docker login -u="${DOCKER_USERNAME}" -p="${DOCKER_PASSWORD}"
docker push kubeapps/ratesvc
fi
Expand Down

0 comments on commit b1b2243

Please sign in to comment.