-
Notifications
You must be signed in to change notification settings - Fork 3
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 #9 from nextmv-io/feature/eng-4446-move-marketplac…
…e-app-update-workflow-to-community-apps-repo ENG-4446 Update marketplace apps in Cloud
- Loading branch information
Showing
19 changed files
with
298 additions
and
60 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 |
---|---|---|
|
@@ -165,3 +165,6 @@ go.work.sum | |
|
||
# VSCode stuff | ||
.vscode/ | ||
|
||
# Java stuff | ||
main.jar |
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,51 @@ | ||
#!/usr/env/bin bash | ||
set -e | ||
|
||
# Checks that APP_DIR is set. | ||
if [[ -z "${APP_DIR}" ]]; then | ||
>&2 echo "❌ APP_DIR must be set" | ||
exit -1 | ||
fi | ||
|
||
# Checks that APP_ID is set. | ||
if [[ -z "${APP_ID}" ]]; then | ||
>&2 echo "❌ APP_ID must be set" | ||
exit -1 | ||
fi | ||
|
||
# Checks that MARKETPLACE_APP_ID is set. | ||
if [[ -z "${MARKETPLACE_APP_ID}" ]]; then | ||
>&2 echo "❌ MARKETPLACE_APP_ID must be set" | ||
exit -1 | ||
fi | ||
|
||
# Checks that VERSION_ID is set. | ||
if [[ -z "${VERSION_ID}" ]]; then | ||
>&2 echo "❌ VERSION_ID must be set" | ||
exit -1 | ||
fi | ||
|
||
# Pushes app to Marketplace. | ||
cd $APP_DIR | ||
nextmv app push \ | ||
--app-id $APP_ID | ||
nextmv app version create \ | ||
--app-id $APP_ID \ | ||
--version-id $VERSION_ID \ | ||
--name $VERSION_ID \ | ||
--description "Version ${VERSION_ID}" | ||
nextmv app instance create \ | ||
--app-id $APP_ID \ | ||
--version-id $VERSION_ID \ | ||
--name $VERSION_ID \ | ||
--description "Instance ${VERSION_ID}" \ | ||
--instance-id $VERSION_ID | ||
nextmv app update \ | ||
--app-id $APP_ID \ | ||
--instance-id $VERSION_ID | ||
nextmv marketplace app version create \ | ||
--marketplace-app-id $MARKETPLACE_APP_ID \ | ||
--partner-id "nextmv" \ | ||
--reference-version-id $VERSION_ID \ | ||
--version-id $VERSION_ID \ | ||
--changelog "Version ${VERSION_ID}" |
Oops, something went wrong.