-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Promote 0.5.0-preview to AIO repo (#47)
Promote the 0.5.0-preview version of AIO.
- Loading branch information
Showing
11 changed files
with
195 additions
and
158 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 |
---|---|---|
@@ -1,47 +1,47 @@ | ||
name: Deploy Azure IoT Operations | ||
run-name: Deploy to ${{ github.event.inputs.aioParamsPath }} | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
clusterSubscription: | ||
description: 'The subscription ID where the Arc-enabled cluster is.' | ||
required: true | ||
type: string | ||
clusterResourceGroup: | ||
description: 'The resource group where the Arc-enabled cluster is.' | ||
required: true | ||
type: string | ||
aioParamsPath: | ||
description: 'The path to the environment parameters file for the AIO deployment. (e.g., environments/example.parameters.json)' | ||
required: true | ||
type: string | ||
jobs: | ||
Deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Azure Login | ||
uses: azure/login@v1 | ||
with: | ||
creds: ${{ secrets.AZURE_CREDENTIALS }} | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
|
||
- name: Deploy AIO to Arc-enabled Cluster | ||
uses: azure/CLI@v1 | ||
with: | ||
inlineScript: | | ||
templateFile="$GITHUB_WORKSPACE/dev/azure-iot-operations.bicep" | ||
[[ ! -f "$templateFile" ]] && templateFile="$GITHUB_WORKSPACE/release/azure-iot-operations.json" | ||
if [[ ! -f "$templateFile" ]]; then | ||
echo "ERROR: Could not find the AIO template to deploy." | ||
exit 1 | ||
fi | ||
az deployment group create \ | ||
--resource-group ${{ github.event.inputs.clusterResourceGroup }} \ | ||
--subscription ${{ github.event.inputs.clusterSubscription }} \ | ||
--name aio-deployment-${{ github.run_number }} \ | ||
--template-file "$templateFile" \ | ||
--parameters "@${{ github.event.inputs.aioParamsPath }}" \ | ||
--verbose --no-prompt | ||
name: Deploy Azure IoT Operations | ||
run-name: Deploy to ${{ github.event.inputs.aioParamsPath }} | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
clusterSubscription: | ||
description: 'The subscription ID where the Arc-enabled cluster is.' | ||
required: true | ||
type: string | ||
clusterResourceGroup: | ||
description: 'The resource group where the Arc-enabled cluster is.' | ||
required: true | ||
type: string | ||
aioParamsPath: | ||
description: 'The path to the environment parameters file for the AIO deployment. (e.g., environments/example.parameters.json)' | ||
required: true | ||
type: string | ||
jobs: | ||
Deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Azure Login | ||
uses: azure/login@v1 | ||
with: | ||
creds: ${{ secrets.AZURE_CREDENTIALS }} | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
|
||
- name: Deploy AIO to Arc-enabled Cluster | ||
uses: azure/CLI@v1 | ||
with: | ||
inlineScript: | | ||
templateFile="$GITHUB_WORKSPACE/dev/azure-iot-operations.bicep" | ||
[[ ! -f "$templateFile" ]] && templateFile="$GITHUB_WORKSPACE/release/azure-iot-operations.json" | ||
if [[ ! -f "$templateFile" ]]; then | ||
echo "ERROR: Could not find the AIO template to deploy." | ||
exit 1 | ||
fi | ||
az deployment group create \ | ||
--resource-group ${{ github.event.inputs.clusterResourceGroup }} \ | ||
--subscription ${{ github.event.inputs.clusterSubscription }} \ | ||
--name aio-deployment-${{ github.run_number }} \ | ||
--template-file "$templateFile" \ | ||
--parameters "@${{ github.event.inputs.aioParamsPath }}" \ | ||
--verbose --no-prompt |
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
Oops, something went wrong.