Skip to content

Commit

Permalink
Merge pull request EOSIO#408 from EOSIO/branch_tags
Browse files Browse the repository at this point in the history
Fix the logic in the buildkite docker tags
  • Loading branch information
zreyn authored Feb 6, 2019
2 parents 48a686e + 6104b19 commit e8915c0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -293,24 +293,24 @@ steps:
docker-credential-gcr configure-docker && \
echo "--- :hammer_and_wrench: BUILDING BUILD IMAGE" && \
cd docker/dev && \
[[ "$BUILDKITE_TAG" == "" ]] && docker build -t eosio/cdt:latest -t eosio/cdt:$BUILDKITE_COMMIT -t eosio/cdt:$BUILDKITE_BRANCH -t eosio/cdt:$BUILDKITE_TAG . || docker build -t eosio/cdt:latest -t eosio/cdt:$BUILDKITE_COMMIT -t eosio/cdt:$BUILDKITE_BRANCH . && \
[[ "$BUILDKITE_TAG" != "" ]] && docker build -t eosio/cdt:latest -t eosio/cdt:$BUILDKITE_COMMIT -t eosio/cdt:$BUILDKITE_BRANCH -t eosio/cdt:$BUILDKITE_TAG . || docker build -t eosio/cdt:latest -t eosio/cdt:$BUILDKITE_COMMIT -t eosio/cdt:$BUILDKITE_BRANCH . && \
docker tag eosio/cdt:$BUILDKITE_COMMIT gcr.io/b1-automation-dev/eosio/cdt:$BUILDKITE_COMMIT && \
docker tag eosio/cdt:$BUILDKITE_BRANCH gcr.io/b1-automation-dev/eosio/cdt:$BUILDKITE_BRANCH && \
[[ "$BUILDKITE_TAG" == "" ]] && docker tag eosio/cdt:$BUILDKITE_TAG gcr.io/b1-automation-dev/eosio/cdt:$BUILDKITE_TAG || : && \
[[ "$BUILDKITE_TAG" != "" ]] && docker tag eosio/cdt:$BUILDKITE_TAG gcr.io/b1-automation-dev/eosio/cdt:$BUILDKITE_TAG || : && \
docker tag eosio/cdt:latest gcr.io/b1-automation-dev/eosio/cdt:latest && \
echo "--- :hand: PUSHING DOCKER IMAGES" && \
docker push gcr.io/b1-automation-dev/eosio/cdt:$BUILDKITE_COMMIT && \
docker push gcr.io/b1-automation-dev/eosio/cdt:$BUILDKITE_BRANCH && \
[[ "$BUILDKITE_TAG" == "" ]] && docker push gcr.io/b1-automation-dev/eosio/cdt:$BUILDKITE_TAG || : && \
[[ "$BUILDKITE_TAG" != "" ]] && docker push gcr.io/b1-automation-dev/eosio/cdt:$BUILDKITE_TAG || : && \
docker push gcr.io/b1-automation-dev/eosio/cdt:latest && \
echo "--- :thought_balloon: TRASHING OLD IMAGES" && \
docker rmi eosio/cdt:$BUILDKITE_COMMIT && \
docker rmi eosio/cdt:$BUILDKITE_BRANCH && \
[[ "$BUILDKITE_TAG" == "" ]] && docker rmi eosio/cdt:$BUILDKITE_TAG || : && \
[[ "$BUILDKITE_TAG" != "" ]] && docker rmi eosio/cdt:$BUILDKITE_TAG || : && \
docker rmi eosio/cdt:latest && \
docker rmi gcr.io/b1-automation-dev/eosio/cdt:$BUILDKITE_COMMIT && \
docker rmi gcr.io/b1-automation-dev/eosio/cdt:$BUILDKITE_BRANCH && \
[[ "$BUILDKITE_TAG" == "" ]] && docker rmi gcr.io/b1-automation-dev/eosio/cdt:$BUILDKITE_TAG || : && \
[[ "$BUILDKITE_TAG" != "" ]] && docker rmi gcr.io/b1-automation-dev/eosio/cdt:$BUILDKITE_TAG || : && \
docker rmi gcr.io/b1-automation-dev/eosio/cdt:latest
label: "Docker Build Builder"
agents:
Expand Down

0 comments on commit e8915c0

Please sign in to comment.