-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor push-to-app-catalog job (#583)
- Loading branch information
1 parent
22dd177
commit bf18925
Showing
9 changed files
with
211 additions
and
501 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
parameters: | ||
app_catalog: | ||
type: "string" | ||
app_catalog_test: | ||
type: "string" | ||
on_tag: | ||
type: boolean | ||
default: true | ||
description: | | ||
When this is `false`, commits to `master` will be pushed to `app_catalog` instead of `app_catalog_test`. | ||
Set this to `false` for deployments that follow a a master branch for production releases rather than | ||
using tags (the default). | ||
steps: | ||
- when: | ||
condition: << parameters.on_tag >> | ||
steps: | ||
- run: | ||
name: "architect/determine-catalog-name: Determine target app catalog based on presence of tag" | ||
command: | | ||
[ -z ${CIRCLE_TAG} ] && echo -n '<< parameters.app_catalog_test >>' | tee .app_catalog_name || echo -n '<< parameters.app_catalog >>' | tee .app_catalog_name | ||
echo -n ${CIRCLE_TAG} | tee .reference | ||
- unless: | ||
condition: << parameters.on_tag >> | ||
steps: | ||
- run: | ||
name: "architect/determine-catalog-name: Determine target app catalog based on branch name" | ||
command: | | ||
[[ ${CIRCLE_BRANCH} == master ]] && echo -n '<< parameters.app_catalog >>' | tee .app_catalog_name || echo -n '<< parameters.app_catalog_test >>' | tee .app_catalog_name | ||
echo -n ${CIRCLE_SHA1} | tee .reference |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.