Skip to content

Commit

Permalink
run preset
Browse files Browse the repository at this point in the history
  • Loading branch information
ishaansehgal99 committed Oct 11, 2023
1 parent 9f00853 commit 6246400
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 22 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/e2e-preset-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ name: E2E Preset Test

on:
workflow_run:
workflows: ["Build and Push Preset Models"]
types: [completed]
workflows: [Build and Push Preset Models]
types:
- completed
workflow_dispatch: {}

env:
Expand Down
40 changes: 20 additions & 20 deletions .github/workflows/preset-image-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -214,23 +214,23 @@ jobs:
- name: 'Login to ACR'
run: az acr login --name aimodelsregistry

- name: Build and push model (with retries)
run: |
retries=3
while [ $retries -gt 0 ]; do
BUILD_ARGS="${{ matrix.model.build_args }}"
BUILD_ARGS=${BUILD_ARGS/__EXTERNAL_IP__/${{ secrets.AZURE_WEB_SERVER_EXTERNAL_IP }}}
BUILD_ARGS=${BUILD_ARGS/__EXTERNAL_PORT__/${{ secrets.AZURE_WEB_SERVER_EXTERNAL_PORT }}}
BUILD_ARGS=${BUILD_ARGS/__WEB_SERVER_AUTH_TOKEN__/${{ secrets.WEB_SERVER_AUTH_TOKEN }}}
echo "Docker BUILD_ARGS: $BUILD_ARGS"
az acr build \
$BUILD_ARGS \
-t aimodelsregistry.azurecr.io/${{ matrix.model.name }}:${{ needs.setup.outputs.image_tag }} \
-r aimodelsregistry \
-f ${{ matrix.model.dockerfile }} \
. && break
retries=$((retries-1))
sleep 15
done
# - name: Build and push model (with retries)
# run: |
# retries=3
# while [ $retries -gt 0 ]; do
# BUILD_ARGS="${{ matrix.model.build_args }}"
# BUILD_ARGS=${BUILD_ARGS/__EXTERNAL_IP__/${{ secrets.AZURE_WEB_SERVER_EXTERNAL_IP }}}
# BUILD_ARGS=${BUILD_ARGS/__EXTERNAL_PORT__/${{ secrets.AZURE_WEB_SERVER_EXTERNAL_PORT }}}
# BUILD_ARGS=${BUILD_ARGS/__WEB_SERVER_AUTH_TOKEN__/${{ secrets.WEB_SERVER_AUTH_TOKEN }}}

# echo "Docker BUILD_ARGS: $BUILD_ARGS"

# az acr build \
# $BUILD_ARGS \
# -t aimodelsregistry.azurecr.io/${{ matrix.model.name }}:${{ needs.setup.outputs.image_tag }} \
# -r aimodelsregistry \
# -f ${{ matrix.model.dockerfile }} \
# . && break
# retries=$((retries-1))
# sleep 15
# done

0 comments on commit 6246400

Please sign in to comment.