GithubHelp home page GithubHelp logo

isabella232 / step-agent-go Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bitrise-io/step-agent-go

0.0 0.0 0.0 4.09 MB

step agent rewrite in go

License: MIT License

Shell 6.75% Go 93.25%

step-agent-go's Introduction

step-agent-go

step agent rewrite in go

Purpose of this tool

This tool is meant to be a "command receiver", designed to perform StepLib steps on a remote host, mostly through SSH.

How it works

To make it easier to send complex parameters for the remote command and to simplify the control of Environment Variable expansion in paths and parameters (meaning: easier control over where the Environment Variable expansion happens, on the host or on the remote end) this tool expects all of it's inputs in Base64 encoded form.

Environment variable pairs are specified the following way (the key and value of a pair is separated with a dot, and key-value pairs are separated with a comma):

key1-base64-encoded.value1-base64-encoded,key2-base64-encoded.value2-base64-encoded

For example to run a script on the remote end, where the script is located at ${HOME}/my_script.sh (HOME: the home folder path on the remote end) with two environment variable pairs specified for the script, for example MYVAR1=first and MYVAR2=second, you can call this tool:

step_agent_osx -steppath="JHtIT01FfS9teV9zY3JpcHQuc2g=" -stepenvs=TVlWQVIx.Zmlyc3Q=,TVlWQVIy.c2Vjb25k

Release:

To create a new release:

  1. bump version in version.go
  2. commit
  3. run $ bash release_test.sh
  4. if prints an error fix it, and run it again while you get an error
  5. tag the new release in git

step-agent-go's People

Contributors

viktorbenei 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.