From f7a0e70b68b75393a8e57a7ab88c2b68b6e64fb6 Mon Sep 17 00:00:00 2001 From: Diego Sampaio Date: Mon, 14 Aug 2017 17:49:46 -0300 Subject: [PATCH] Remove CircleCI --- .circleci/Dockerfile | 20 ------------ .circleci/config.yml | 77 -------------------------------------------- 2 files changed, 97 deletions(-) delete mode 100644 .circleci/Dockerfile delete mode 100644 .circleci/config.yml diff --git a/.circleci/Dockerfile b/.circleci/Dockerfile deleted file mode 100644 index 2d2fd2c845e5..000000000000 --- a/.circleci/Dockerfile +++ /dev/null @@ -1,20 +0,0 @@ -FROM node:4 - -ADD . /app - -ENV RC_VERSION=0.57.0-designpreview \ - DEPLOY_METHOD=docker \ - NODE_ENV=production \ - PORT=3000 \ - ROOT_URL=http://localhost:3000 - -RUN set -x \ - && cd /app/bundle/programs/server \ - && npm install \ - && npm cache clear - -WORKDIR /app/bundle - -EXPOSE 3000 - -CMD ["node", "main.js"] diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 3a9856532a0c..000000000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,77 +0,0 @@ -# Javascript Node CircleCI 2.0 configuration file -# -# Check https://circleci.com/docs/2.0/language-javascript/ for more details -# -version: 2 -jobs: - build: - docker: - # specify the version you desire here - - image: circleci/node:7.10 - - # Specify service dependencies here if necessary - # CircleCI maintains a library of pre-built images - # documented at https://circleci.com/docs/2.0/circleci-images/ - # - image: circleci/mongo:3.4.4 - - working_directory: ~/repo - - steps: - - checkout - - - run: - name: Install Meteor - command: if [ ! -e "$HOME/.meteor/meteor" ]; then curl https://install.meteor.com | sed s/--progress-bar/-sL/g | /bin/sh; fi - filters: - branches: - only: color-variables - - # Download and cache dependencies - - restore_cache: - key: dependency-cache-{{ checksum "package.json" }} - filters: - branches: - only: color-variables - - - run: - name: Build Rocket.Chat - command: | - meteor npm install - set +e - meteor add rocketchat:lib - set -e - meteor build --server-only --directory /tmp/build - filters: - branches: - only: color-variables - - - save_cache: - key: dependency-cache-{{ checksum "package.json" }} - paths: - - ./node_modules - - ./.meteor - - $HOME/.meteor - filters: - branches: - only: color-variables - - - setup_remote_docker - - - run: - name: Build Docker image - command: | - docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD - cp .circleci/Dockerfile /tmp/build - cd /tmp/build - docker build -t rocketchat/rocket.chat:designpreview . - docker push rocketchat/rocket.chat:designpreview - filters: - branches: - only: color-variables - - run: - name: Notify on demo - command: | - curl -X POST -H 'Content-Type: application/json' --data "{\"text\":\"@here Nova [build](${CIRCLE_BUILD_URL}) pronta :marioparty:\"}" $WEBHOOK_URL - filters: - branches: - only: color-variables