Name: steps-script
Owner: Bitrise
Description: A generic Script step for Bitrise
Created: 2015-07-20 10:17:43.0
Updated: 2016-12-09 02:21:13.0
Pushed: 2017-10-27 13:09:51.0
Homepage: null
Size: 23
Language: Shell
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Specify the script content and (optionally) the script runner, to run any custom script in your bitrise.io workflow!
The runner can even be a command, as long as it's available in the PATH
and can execute the script, it will work.
For example to run a Go Hello World “script” you can define the content:
age main
rt "fmt"
main() {
fmt.Println("Hello World")
Set the Execute with parameter to go run
and specify
a script file path because go run
can only accept (at the moment)
files with a .go
extension (just specify main.go
or step.go
as the script path).
If the go
binary can be found in the $PATH
your Hello World
script will run without any problem.
Can be run directly with the bitrise CLI,
just git clone
this repository, cd
into it's folder in your Terminal/Command Line
and call bitrise run test
.
Check the bitrise.yml
file for required inputs which have to be
added to your .bitrise.secrets.yml
file!
Step by step:
git clone
the repositorycd
into the directory of the step (the one you just git clone
d).bitrise.secrets.yml
file in the same directory of bitrise.yml
- the .bitrise.secrets.yml
is a git ignored file, you can store your secrets inbitrise.yml
file for any secret you should set in .bitrise.secrets.yml
# define these in your .bitrise.secrets.yml
, in the app:envs
section..bitrise.secrets.yml
you can just run this step with the bitrise CLI: bitrise run test
An example .bitrise.secrets.yml
file:
:
SECRET_PARAM_ONE: the value for secret one
SECRET_PARAM_TWO: the value for secret two
step.sh
with your functionalitystep.yml
(inputs
section)step.yml
toobitrise.yml
bitrise run test
- if it works, you're readyNOTE:
If you want to use your step in your project's bitrise.yml
:
bitrise.yml
with the git::PUBLIC-GIT-CLONE-URL@BRANCH
step reference style:t::https://github.com/user/my-step.git@branch:
itle: My step
nputs:
my_input_1: "my value 1"
my_input_2: "my value 2"
You can find more examples of step reference styles in the bitrise CLI repository.
git clone
itbitrise
project, either on your Mac or on bitrise.iobitrise.yml
with either a relative path, or with a git URL format- original-step-id:
use - path::./relative/path/of/script/on/your/Mac:
- original-step-id:
use - git::https://github.com/user/step.git@branch:
You can share your Step or step version with the bitrise CLI. Just run bitrise share
and follow the guide it prints.