Skip to content

Commit

Permalink
added sensitive input options (#42)
Browse files Browse the repository at this point in the history
* added sensitive input options

* release flow clean-up

* fix wrong indentation

* Update step.yml
  • Loading branch information
trapacska authored and godrei committed Aug 31, 2018
1 parent bc760b7 commit 7058418
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 209 deletions.
145 changes: 0 additions & 145 deletions CHANGELOG.md

This file was deleted.

8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,10 @@ in the [bitrise CLI repository](https://github.com/bitrise-io/bitrise/blob/maste

## Share your own Step

You can share your Step or step version with the [bitrise CLI](https://github.com/bitrise-io/bitrise). Just run `bitrise share` and follow the guide it prints.
You can share your Step or step version with the [bitrise CLI](https://github.com/bitrise-io/bitrise). Just run `bitrise share` and follow the guide it prints.


## Trigger a new release

- __merge every code changes__ to the `master` branch
- __push the new version tag__ to the `master` branch
49 changes: 0 additions & 49 deletions bitrise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git

app:
envs:
- BITRISE_STEP_VERSION: 2.7.3
- BITRISE_STEP_GIT_CLONE_URL: https://github.com/bitrise-io/steps-slack-message.git
- MY_STEPLIB_REPO_FORK_GIT_URL: $MY_STEPLIB_REPO_FORK_GIT_URL

workflows:
test:
Expand Down Expand Up @@ -126,18 +124,6 @@ workflows:
go get -u -v github.com/golang/dep/cmd/dep
dep ensure -v
dep ensure -v -update
# --- workflow to create Release version
create-release:
steps:
- script:
title:
inputs:
- content: |
#!/bin/bash
set -ex
go get -u github.com/bitrise-tools/releaseman
export CI=true
releaseman create --version "$BITRISE_STEP_VERSION"
# ----------------------------------------------------------------
# --- workflows to Share this step into a Step Library
Expand All @@ -149,38 +135,3 @@ workflows:
#!/bin/bash
set -ex
stepman audit --step-yml ./step.yml
share-this-step:
envs:
# if you want to share this step into a StepLib
- MY_STEPLIB_REPO_FORK_GIT_URL: $MY_STEPLIB_REPO_FORK_GIT_URL
- BITRISE_STEP_ID: slack
- BITRISE_STEP_VERSION: $BITRISE_STEP_VERSION
- BITRISE_STEP_GIT_CLONE_URL: $BITRISE_STEP_GIT_CLONE_URL
description: |-
If this is the first time you try to share a Step you should
first call: $ bitrise share
This will print you a guide, and information about how Step sharing
works. Please read it at least once!
As noted in the Step sharing guide you'll have to fork the
StepLib you want to share this step into. Once you're done with forking
the repository you should set your own fork's git clone URL
in the `.bitrise.secrets.yml` file, or here in the `envs` section,
as the value of the `MY_STEPLIB_REPO_FORK_GIT_URL` environment.
You're now ready to share this Step, just make sure that
the `BITRISE_STEP_ID` and `BITRISE_STEP_VERSION`
environments are set to the desired values!
To share this Step into a StepLib you can just run: $ bitrise run share-this-step
Once it finishes the only thing left is to actually create a Pull Request,
the way described in the guide printed at the end of the process.
before_run:
- audit-this-step
steps:
- script:
inputs:
- content: |-
#!/bin/bash
set -ex
bitrise share start -c "${MY_STEPLIB_REPO_FORK_GIT_URL}"
bitrise share create --stepid "${BITRISE_STEP_ID}" --tag "${BITRISE_STEP_VERSION}" --git "${BITRISE_STEP_GIT_CLONE_URL}"
bitrise share finish
13 changes: 0 additions & 13 deletions release_config.yml

This file was deleted.

2 changes: 1 addition & 1 deletion step.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ inputs:
opts:
title: "Slack Webhook URL"
is_required: true
is_sensitive: true

- channel:
opts:
Expand All @@ -66,7 +67,6 @@ inputs:
* channel example: #general
* username example: @username
category: If Build Failed

- text:
opts:
title: "Text of the message to send."
Expand Down

0 comments on commit 7058418

Please sign in to comment.