From cb05e40922d26f6af489c7da5aa09532d1f68295 Mon Sep 17 00:00:00 2001 From: Filipe Esperandio Date: Fri, 8 Sep 2017 15:48:43 -0300 Subject: [PATCH] Tag and Push to Docker Hub --- circle.yml | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/circle.yml b/circle.yml index c7dd860..b75d490 100644 --- a/circle.yml +++ b/circle.yml @@ -4,14 +4,10 @@ machine: dependencies: override: - - > - docker run - --env CIRCLE_BRANCH - --env CIRCLE_PROJECT_REPONAME - --env CIRCLE_TOKEN - --env GCR_JSON_KEY - --volume /var/run/docker.sock:/var/run/docker.sock - codeclimate/patrick pull || true + - docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD" -e "$DOCKER_EMAIL" + - docker pull "codeclimate/codeclimate-pmd:${CIRCLE_BRANCH//\//-}" || docker pull codeclimate/codeclimate-pmd || true + - git rev-parse HEAD > REVISION + - git rev-list --count HEAD > COMMIT_COUNT - make image test: @@ -19,17 +15,19 @@ test: - make test deployment: - registry: + release: + branch: master + owner: codeclimate + commands: + - docker push codeclimate/codeclimate-pmd + staging: branch: /master|channel\/[\w-]+/ owner: codeclimate commands: - - > - docker run - --env CIRCLE_BUILD_NUM - --env CIRCLE_PROJECT_REPONAME - --env GCR_JSON_KEY - --volume /var/run/docker.sock:/var/run/docker.sock - codeclimate/patrick push gcr + - docker tag codeclimate/codeclimate-pmd codeclimate/codeclimate-pmd:${CIRCLE_BUILD_NUM} + - docker push codeclimate/codeclimate-pmd:${CIRCLE_BUILD_NUM} + - docker tag codeclimate/codeclimate-pmd codeclimate/codeclimate-pmd:${CIRCLE_BRANCH//\//-} + - docker push codeclimate/codeclimate-pmd:${CIRCLE_BRANCH//\//-} notify: webhooks: pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy