directcd

command module
v0.0.0-...-81acc68 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2019 License: MIT Imports: 16 Imported by: 0

README

directcd

Continious delivery directly to containers pulling sources from source-repos

Pulling Single Repo

./directcd pull --repo https://github.com/untillpro/directcd-test \
  -o directcd-test.exe \
  -t 10 \
  -w .tmp
  • Repo directcd-test is pulled every 10 seconds
  • If changes occur
    • Prevous instance (if any) of directcd-test.exe is terminated
    • go build -o directcd-test.exe is invoked
    • directcd-test.exe is launched
  • Working files are located in .tmp folder

Pulling Few Repos

./directcd pull \
  --repo https://github.com/untillpro/directcd-test \
  --replace https://github.com/untillpro/directcd-test-print=https://github.com/maxim-ge/directcd-test-print \
  -v \
  -o out.exe \
  -t 10 \
  -w .tmp \
  -- --option1 arg1 arg2
  • Repos specified by --repo (main repo) and --replace flags are pulled every 10 seconds
  • If changes occur
    • Prevous instance (if any) of out.exe is terminated
    • replace directive is added to main repo go.mod
      • replace github.com/untillpro/directcd-test-print => ../directcd-test-print
    • main repo is built and launched
    • go.mod is reverted to original state
  • -v means verbose mode
  • --option1 arg1 arg2 are passed to out.exe

Hooks

Stop process

Misc

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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