Skip to content

Commit

Permalink
tst
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Mifsud committed Oct 27, 2023
1 parent f5932e2 commit 8961dd6
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions .github/workflows/deploy-online-endpoint-pipeline-classical.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
get-endpoint:
needs: get-config
runs-on: ubuntu-latest
outputs:
ml_enpoint: ${{ steps.get-ml-endpoint.outputs.ML_ENPOINT }}
steps:
- name: "Az CLI login"
uses: azure/login@v1
Expand All @@ -35,32 +37,32 @@ jobs:
else
echo "not same"
fi
- id: create-ml-endpoint
name: create-ml-endpoint
if: ${{ steps.get-ml-endpoint.outputs.ML_ENPOINT == format('taxi{0}', needs.get-config.outputs.oep) }}
# - id: create-ml-endpoint
# name: create-ml-endpoint

# uses: Azure/mlops-templates/.github/workflows/create-endpoint.yml@main
# with:
# resource_group: ${{ needs.get-config.outputs.resource_group }}
# workspace_name: ${{ needs.get-config.outputs.aml_workspace }}
# endpoint_file: mlops/azureml/deploy/online/online-endpoint.yml
# endpoint_name: ${{ format('taxi{0}', needs.get-config.outputs.oep) }}
# endpoint_type: online
# creds: ${{secrets.AZURE_CREDENTIALS}}

# TODO: Update if exists else create
create-endpoint:
needs: [get-config, get-endpoint]
if: ${{ needs.get-endpoint.outputs.ml_enpoint == format('taxi{0}', needs.get-config.outputs.oep) }}
uses: Azure/mlops-templates/.github/workflows/create-endpoint.yml@main
with:
resource_group: ${{ needs.get-config.outputs.resource_group }}
workspace_name: ${{ needs.get-config.outputs.aml_workspace }}
endpoint_file: mlops/azureml/deploy/online/online-endpoint.yml
endpoint_name: ${{ format('taxi{0}', needs.get-config.outputs.oep) }}
endpoint_type: online
secrets:
creds: ${{secrets.AZURE_CREDENTIALS}}

# TODO: Update if exists else create


# create-endpoint:
# needs: get-config
# uses: Azure/mlops-templates/.github/workflows/create-endpoint.yml@main
# with:
# resource_group: ${{ needs.get-config.outputs.resource_group }}
# workspace_name: ${{ needs.get-config.outputs.aml_workspace }}
# endpoint_file: mlops/azureml/deploy/online/online-endpoint.yml
# endpoint_name: ${{ format('taxi{0}', needs.get-config.outputs.oep) }}
# endpoint_type: online
# secrets:
# creds: ${{secrets.AZURE_CREDENTIALS}}

# # TODO: Update if exists else create
# create-deployment:
# uses: Azure/mlops-templates/.github/workflows/create-deployment.yml@main
Expand Down

0 comments on commit 8961dd6

Please sign in to comment.