Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

master builds not published to dockerhub #2448

Closed
rade opened this issue Apr 17, 2017 · 1 comment
Closed

master builds not published to dockerhub #2448

rade opened this issue Apr 17, 2017 · 1 comment
Assignees
Labels
bug Broken end user or developer functionality; not working as the developers intended it component/build An issue concerning compilation, testing, packaging, distribution

Comments

@rade
Copy link
Member

rade commented Apr 17, 2017

weaveworks/scope master builds aren't being published to dockerhub. I am quite sure they used to.

AFAICT, the problem is in the circleci.yml:

        test -z "${DOCKER_USER}" || (
          docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS &&
          (test "${DOCKER_ORGANIZATION:-$DOCKER_USER}" != "weaveworks" && (
            for IMAGE in $IMAGES; do
              docker tag weaveworks/$IMAGE:latest ${DOCKER_ORGANIZATION:-$DOCKER_USER}/$IMAGE:latest &&
              docker tag weaveworks/$IMAGE:$(./tools/image-tag) ${DOCKER_ORGANIZATION:-$DOCKER_USER}/$IMAGE:$(./tools/image-tag)
            done
          )) &&
          for IMAGE in $IMAGES; do
            docker push ${DOCKER_ORGANIZATION:-$DOCKER_USER}/$IMAGE &&
            docker push ${DOCKER_ORGANIZATION:-$DOCKER_USER}/$IMAGE:$(./tools/image-tag)
          done

won't execute the last for loop, which pushes the images, when the test for "not weaveworks" in the preceding expression fails, since that makes the entire sub-expression false.

@rade rade added bug Broken end user or developer functionality; not working as the developers intended it component/build An issue concerning compilation, testing, packaging, distribution labels Apr 17, 2017
@rade
Copy link
Member Author

rade commented Apr 17, 2017

This got broken in 98395bb, which for no apparent reason changed the condition from

... == "weaveworks" ||

to

... != "weaveworks" &&

cc @2opremio

@rade rade self-assigned this Apr 17, 2017
rade added a commit that referenced this issue Apr 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Broken end user or developer functionality; not working as the developers intended it component/build An issue concerning compilation, testing, packaging, distribution
Projects
None yet
Development

No branches or pull requests

1 participant