GithubHelp home page GithubHelp logo

isabella232 / ci-studio-common Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chef/ci-studio-common

0.0 0.0 0.0 99.21 MB

Shared helpers for use inside CIs (like Travis) and a Habitat Studio

License: Apache License 2.0

Shell 3.80% Makefile 1.50% Go 94.70%

ci-studio-common's Introduction

Common CI / Habitat Studio Functionality

This repository houses some scripts / files that are used across various Chef projects. These are designed and intended to be used by Chef Developers who are working on some specific projects. We are keeping it public as to simplify the download process for our developers.

Announcing the 2.0 release

The focus of the 2.0 release is to optimize ci-studio-common for use with multiple Buildkite platform. As such, we have made the breaking following changes:

  • Utilities are now being written in Go to ensure consistency and availability across supported platforms.
  • Some deprecated utilities have been removed, or are in the process of being removed.
  • We no longer ship the CI binaries as part of the Chef Habitat Package

CI Services (Travis, Buildkite, etc)

Installation

You can install each component individually or the entirety of ci-studio-common grouped per OS and Arch at https://github.com/chef/ci-studio-common/releases

Currently available for:

OS ARCH
Darwin x86-64
Linux x86-64
Windows x86-64

Commands

did-modify

Prints "true" to STDOUT if any files matching GLOBS were modified between HEAD and GITREF. Otherwise, prints "false".

Usage:
  did-modify [flags]

Flags:
      --git-ref string   A valid Git reference (e.g. HEAD, master, origin/master, etc). (default "HEAD~1")
      --globs strings    Comma-separated list of glob patterns to inspect to determine if there are changes. (default [*])
  -h, --help             help for did-modify

file-mod

Command line utility to modify files.

Usage:
  file-mod [command]

Available Commands:
  append-if-missing Append STRING to FILE if not already there.
  find-and-replace  Replace REGEX_STR with STRING in FILE. Supports multiline replace.
  help              Help about any command

Flags:
  -h, --help   help for file-mod

Use "file-mod [command] --help" for more information about a command.

vault-util

Utility to access secrets and account information stored in Hashicorp Vault from CI.

Usage:
  vault-util [command]

Available Commands:
  configure-accounts    Configure the accounts specified in the VAULT_UTIL_ACCOUNTS environment variable.
  fetch-secret-env      Fetch the secrets specified in the VAULT_UTIL_SECRETS environment variable from Vault.
  help                  Help about any command
  print-git-credentials Utility that will print credentials for a GitHub App from Vault in git-credential-helper format.

Flags:
  -h, --help   help for vault-util

Use "vault-util [command] --help" for more information about a command.

FAQ

How do you determine a CI environment vs a non-CI environment?

ci-studio-common determines whether it is operating in a CI environment by the presence of a CI environment variable.

ci-studio-common's People

Contributors

baumanj avatar chef-ci avatar danielsdeleo avatar jaym avatar jeremiahsnapp avatar nkierpiec avatar schisamo avatar srenatus avatar stevendanna avatar tduffield avatar tylercloke avatar

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.