Skip to content

Commit

Permalink
test vars
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Mifsud committed Oct 30, 2023
1 parent c320023 commit 2e8276c
Showing 1 changed file with 19 additions and 16 deletions.
35 changes: 19 additions & 16 deletions .github/workflows/deploy-online-endpoint-pipeline-classical.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ jobs:
uses: Azure/mlops-templates/.github/workflows/read-yaml.yml@main
with:
file_name: config-infra-prod.yml

get-endpoint:
needs: get-config
runs-on: ubuntu-latest
Expand Down Expand Up @@ -37,26 +36,30 @@ jobs:
else
echo "not same"
fi
- id: test
name: test
run: |
echo "ccccccccccccccccccccc"
echo ${{ steps.get-ml-endpoint.outputs.ml_enpoint }}
echo ${{ format('taxi{0}', needs.get-config.outputs.oep) }}
# TODO: Update if exists else create
create-endpoint:
needs: [get-config, get-endpoint]
runs-on: ubuntu-latest
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}}
steps:
- id: test
name: test
run: |
echo "ccccccccccccccccccccc"
echo ${{ needs.get-endpoint.outputs.ml_enpoint }}
echo ${{ format('taxi{0}', needs.get-config.outputs.oep) }}
# - id: create-end
# name: create-end
# 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:
Expand Down

0 comments on commit 2e8276c

Please sign in to comment.