From 35690f5ae016b7b431767fea33afe4d3a2ed87ea Mon Sep 17 00:00:00 2001 From: Federico Moya Date: Wed, 20 May 2020 11:47:21 -0300 Subject: [PATCH] Add missing release job to circleci --- .circleci/config.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 89ad21f..0c2e484 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -13,6 +13,42 @@ jobs: - run: name: Test command: make test + + release_images: + machine: + docker_layer_caching: true + working_directory: ~/codeclimate/codeclimate-sonar-java + steps: + - checkout + - run: + name: Validate owner + command: | + if [ "$CIRCLE_PROJECT_USERNAME" -ne "codeclimate" ] + then + echo "Skipping release for non-codeclimate branches" + circleci step halt + fi + - run: make image + - run: echo "$GCR_JSON_KEY" | docker login -u _json_key --password-stdin us.gcr.io + - run: + name: Push image to GCR + command: | + docker tag codeclimate/codeclimate-sonar-java \ + us.gcr.io/code-climate/codeclimate-sonar-java:b$CIRCLE_BUILD_NUM + docker push us.gcr.io/code-climate/codeclimate-sonar-java:b$CIRCLE_BUILD_NUM + +workflows: + version: 2 + build_deploy: + jobs: + - build + - release_images: + requires: + - build + filters: + branches: + only: /master|channel\/[\w-]+/ + notify: webhooks: - url: https://cc-slack-proxy.herokuapp.com/circle 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