imployer

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: MIT Imports: 1 Imported by: 0

README

Imployer

Imployer (Employer) - CLI tool for building and deploying applications to remote machines via SSH. This tool is capable of deploying single binary to several remote machines and restarting systemd service afterwards.

Install

Remote

In order to install as cli run: go install github.com/fr0stylo/imployer@latest

Building from source

Clone repository and run go install .

Usage

Usage:
  imployer [flags]
  imployer [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  deploy      Deploy to server
  help        Help about any command

Flags:
  -f, --config string   install config file path (default "./install.yaml")


Deploy to server

Usage:
  imployer deploy [flags]

Flags:
  -d, --deleteArtifact               
  -e, --executable string            
  -h, --help                         help for deploy
  -H, --host string                  
  -i, --identityFile string           (default "~/.ssh/id_rsa")
  -P, --port string                   (default "22")
  -p, --profile stringArray          
  -r, --remoteExecutableDir string    (default "/apps")
  -s, --serviceName string           
  -u, --user string                   (default "user")

install.yaml configuration file example:

build:
  env:
    - "GOOS=linux"
    - "GOARCH=arm"
    - "GOARM=7"
  flags:
    - "-ldflags"
    - "-s -w"
    - "-installsuffix"
    - "cgo"
  output: service
deploy:
  input: service
  execName: application
  remoteDir: /apps
  service: context-application
  delete: true
  ssh:
    - profile: pi

Contribution

All contributions are welcome as pull request

Documentation

Overview

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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