Categorygithub.com/bcaldwell/ci-scripts
module
0.0.0-20240902160158-c8278779a4d5
Repository: https://github.com/bcaldwell/ci-scripts.git
Documentation: pkg.go.dev

# README

CI Scripts

A collection of modular scripts that are commonly run in CI. The goal of this project is to reduce the number of CI configuration files that have duplicate code. Environment variables are used to configure the scripts. To include a script add the following to the CI config:

Installation

gem install ci-scripts
ci-scripts SCRIPT_NAME

Scripts

demo/test

docker/build

Uses docker to build the docker image for the current project.

This script assumes the following binaries are installed:

  • docker

Environment Variables

VariableDefaultRequiredDescription
DOCKER_IMAGE
IMAGE_TAGgit tagMy favoruite thing
BUILD_DOCKERFILEDockerfile

docker/herokuish

This script depends on and will run the following other scripts:

docker/login

Environment Variables

VariableDefaultRequiredDescription
DOCKER_USERNAME
DOCKER_PASSWORD
DOCKER_EMAIL[email protected]
DOCKER_REGISTRYhub.docker.com

docker/push_branch

Environment Variables

VariableDefaultRequiredDescription
DOCKER_IMAGE
IMAGE_TAGcurrent git hash

docker/push_latest

Environment Variables

VariableDefaultRequiredDescription
DOCKER_LATEST_BRANCHmaster
DOCKER_IMAGE
IMAGE_TAGcurrent git hash

git/ssh_keys

ruby/bundler

Environment Variables

VariableDefaultRequiredDescription
BUNDLER_INSTALL_PATHvendor

ruby/publish_gem

ruby/rake_test

Runs ruby tests by executing the rake test command. Uses bundler if bundler is installed.

ruby/rubocop

# Packages

No description provided by the author
No description provided by the author