Code Monkey home page Code Monkey logo

ci-scripts's Introduction

ci-scripts

Re-usable continuous integration (CI) scripts

Inspired by: https://circleci.com/blog/continuous-integration-at-segment/

Owned by #eng-infra.

Scripts

General-purpose

The following scripts don't rely on any Clever-specific tooling.

Docker

Logs into Docker registry, then builds and pushes docker image. Docker image is tagged with 7 character git commit SHA.

$ ./circleci/docker-publish [DOCKER_USER] [DOCKER_PASS] [DOCKER_EMAIL] [ORG]

NPM Publish

Authenticates to NPM and publishes a package.

$ ./circleci/npm-publish [NPM_TOKEN] [PACKAGE_DIR]

Github Release

Publishes content from [ARTIFACTS_DIR] as a Github Release.

$ ./circleci/github-release [--pre-release] <GITHUB_TOKEN> [ARTIFACTS_DIR]

Clever internal

The following scripts depend on Clever-specific infrastructure and tooling.

Catapult

Publishes your application and build in catapult.

$ ./circleci/catapult-publish [CATAPULT_URL] [CATAPULT_USER] [CATAPULT_PASS] [APP_NAME]

If you need to publish multiple applications, run this command once for each.

Dapple

Deploys your application with dapple. Requires that you've first pushed the Docker image and published the application to Catapult.

$ ./circleci/dapple-deploy <DAPPLE_URL> <DAPPLE_USER> <DAPPLE_PASS> <APP_NAME> [ENVIRONMENT] [DEPLOYMENT_STRATEGY]

Note: The default environment is clever-dev and the default deployment strategy is confirm-then-deploy. Additionally you can choose a no-confirm-deploy strategy that does not require confirmation before deploying.

If you need to deploy multiple applications, run this command once for each.

Workflow

Publishes a workflow to workflow-manager.

$ ./circleci/workflow-publish [WF_URL] [WF_USER] [WF_PASS] [WF_JSON]

Report-card

Disabled.

We still are keeping the script here so that repos that invoke it can do so safely. But it is a no-op.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.