diff --git a/.github/workflows/deploy-online-endpoint-pipeline-classical.yml b/.github/workflows/deploy-online-endpoint-pipeline-classical.yml index 74d9810..7618f1f 100644 --- a/.github/workflows/deploy-online-endpoint-pipeline-classical.yml +++ b/.github/workflows/deploy-online-endpoint-pipeline-classical.yml @@ -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 @@ -35,9 +37,22 @@ 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 }} @@ -45,22 +60,9 @@ jobs: 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