-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: software as a service, package build|verify (#203)
* deleting image file at root of repo * adding script * fixing software as a service results * version 0.2.2 * style and linter fixes * Fixing #202 * style and linter fixes
- Loading branch information
1 parent
0113ff4
commit 3ad2c8a
Showing
17 changed files
with
127 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,6 +53,7 @@ coverage.xml | |
*.py,cover | ||
.hypothesis/ | ||
.pytest_cache/ | ||
.cnab | ||
|
||
# Translations | ||
*.mo | ||
|
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
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
Binary file added
BIN
+76.8 KB
...r/azext_partnercenter/tests/data/marketplace_offer_package/aks_offer/azure-vote-0.1.2.tgz
Binary file not shown.
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
6 changes: 3 additions & 3 deletions
6
partnercenter/azext_partnercenter/tests/data/marketplace_offer_package/aks_offer/porter.yaml
Large diffs are not rendered by default.
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
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
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,84 @@ | ||
#!/bin/bash | ||
|
||
# required tools: | ||
# - git CLI | ||
# - github CLI (brew install gh) | ||
# | ||
# to login using the GH CLI: | ||
# gh auth login -h github.com -p ssh --web | ||
# , then follow prompts | ||
# | ||
# example call: | ||
# ./scripts/release.sh 0.2.2 v0.2.2-alpha | ||
|
||
version_number=$1 | ||
version_tag=$2 | ||
|
||
function confirm_prompt() { | ||
text=$1 | ||
read -p "$text (Y/n)" -n 1 -r | ||
echo # (optional) move to a new line | ||
if [[ ! $REPLY =~ ^[Yy]$ ]] | ||
then | ||
echo "aborting." | ||
exit 1 | ||
fi | ||
} | ||
|
||
function print_info() { | ||
echo "" | ||
echo "Release Information:" | ||
echo "-------------------------------" | ||
echo "Number: $version_number" | ||
echo "Tag: $version_tag" | ||
echo "" | ||
|
||
confirm_prompt "Proceed with release?" | ||
} | ||
|
||
function install_github_cli() { | ||
gh_version=$(gh version) | ||
if [[ -z "$gh_version" ]]; then | ||
echo "GitHub CLI not installed. Installing..." | ||
brew install gh | ||
fi | ||
|
||
gh_version=$(gh version) | ||
echo "GitHub CLI installed [$gh_version]" | ||
echo "" | ||
} | ||
|
||
function git_tag_version() { | ||
confirm_prompt "Proceed with Git tag?" | ||
|
||
echo "tagging: $version_tag" | ||
# git tag -a $version_tag -m "$version_tag" | ||
|
||
# echo "pushing tag: $version_tag" | ||
# git push origin $version_tag | ||
} | ||
|
||
function release_extension() { | ||
echo "building extension." | ||
azdev extension build partnercenter | ||
|
||
|
||
whl_file=partnercenter-$version_number-py3-none-any.whl | ||
title="Partner Center Azure CLI Extension $version_tag" | ||
|
||
echo "creating GitHub release." | ||
gh release create $version_tag ./dist/$whl_file --generate-notes --draft --prerelease | ||
|
||
echo "updating Azure CLI index" | ||
whl_uri=https://github.com/Azure/partnercenter-cli-extension/releases/download/$version_tag/$whl_file | ||
|
||
azdev extension update-index $whl_uri | ||
} | ||
|
||
print_info | ||
install_github_cli | ||
git_tag_version | ||
|
||
# install_github_cli | ||
# tag_version | ||
# release_extension |