-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from kdobmayer/master
Parse env vars into the step config
- Loading branch information
Showing
18 changed files
with
810 additions
and
104 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[[constraint]] | ||
name = "github.com/bitrise-tools/go-steputils" | ||
branch = "master" | ||
|
||
[prune] | ||
go-tests = true | ||
unused-packages = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
package main | ||
|
||
// Config will be populated with the retrieved values from environment variables | ||
// config will be populated with the retrieved values from environment variables | ||
// configured as step inputs. | ||
type Config struct { | ||
|
||
// Message | ||
type config struct { | ||
BuildNumber string `env:"BITRISE_BUILD_NUMBER"` | ||
AppTitle string `env:"BITRISE_APP_TITLE"` | ||
AppURL string `env:"BITRISE_APP_URL"` | ||
BuildURL string `env:"BITRISE_BUILD_URL"` | ||
RepoURL string `env:"GIT_REPOSITORY_URL"` | ||
GitBranch string `env:"BITRISE_GIT_BRANCH"` | ||
AppImageURL string `env:"BITRISE_APP_SLUG"` | ||
|
||
WebhookURL string `env:"webhook_url,required"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.