Skip to content

Commit

Permalink
Another approach
Browse files Browse the repository at this point in the history
  • Loading branch information
vblagoje committed Jul 6, 2023
1 parent a88596c commit 5464a19
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/docker_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,12 @@ jobs:
TAG="base-${{ matrix.target }}-${{ steps.meta.outputs.version }}"
PLATFORM="linux/amd64"
TORCH_INSTALLED=$(docker run --platform "$PLATFORM" --rm "deepset/haystack:$TAG" pip list | grep torch)
[[ "$TORCH_INSTALLED" != "" ]] || echo "::error 'Pytorch is installed in deepset/haystack:$TAG image for $PLATFORM'"
TORCH_INSTALLED=$(docker run --platform "$PLATFORM" --rm "deepset/haystack:$TAG" sh -c "pip list | grep torch || echo 'not found'")
[[ "$TORCH_INSTALLED" == "not found" ]] || echo "::error::Pytorch is installed in deepset/haystack:$TAG image for $PLATFORM"
PLATFORM="linux/arm64"
TORCH_INSTALLED=$(docker run --platform "$PLATFORM" --rm "deepset/haystack:$TAG" pip list | grep torch)
[[ "$TORCH_INSTALLED" != "" ]] || echo "::error 'Pytorch is installed in deepset/haystack:$TAG image for $PLATFORM'"
TORCH_INSTALLED=$(docker run --platform "$PLATFORM" --rm "deepset/haystack:$TAG" sh -c "pip list | grep torch || echo 'not found'")
[[ "$TORCH_INSTALLED" == "not found" ]] || echo "::error::Pytorch is installed in deepset/haystack:$TAG image for $PLATFORM'"
- name: Build api images
uses: docker/bake-action@v2
Expand Down

0 comments on commit 5464a19

Please sign in to comment.