conform

command module
v0.1.0-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2017 License: MPL-2.0 Imports: 1 Imported by: 0

README

Conform

DRY, hygienic, fast builds.

Gitter GoDoc

Travis Codecov Go Report Card

Release GitHub (pre-)release


Conform is a tool for building projects in a flexible and reliabale manner.

The key features of Conform are:

  • DRY: Templatized multi-stage Docker builds.
  • Hygienic: Builds run in Docker.
  • Fast: Leverages Docker caching, building only what has changed.

Getting Started

Create a file named conform.yaml with the following contents:

metadata:
  repository: example
scripts:
  init : |
    #!/bin/bash

    set -e

    echo "Initialize any dependencies here."
  deploy : |
    #!/bin/bash

    set -e

    echo "Deploy you image here."
templates:
  build: |
    FROM alpine:latest as build
    RUN echo "Run your build here."
    RUN touch artifact
  test: |
    FROM alpine:latest as test
    COPY --from=build artifact .
    RUN echo "Run your tests here."
  image: |
    FROM scratch as image
    RUN echo "Prepare your final image here."
    COPY --from=build artifact .
rules:
  image:
    before:
      - init
    templates:
      - build
      - test
      - image
    after:
      - deploy

In the same directory, run:

$ conform enforce image

Devloping Conform

License

license

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
git

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL