diff --git a/.github/workflows/image.yaml b/.github/workflows/image.yaml index ed54505de..5e495b85b 100644 --- a/.github/workflows/image.yaml +++ b/.github/workflows/image.yaml @@ -19,6 +19,12 @@ jobs: registry: quay.io username: ${{ secrets.QUAY_USERNAME }} password: ${{ secrets.QUAY_ROBOT_TOKEN }} + - name: Run basic sanity checks/tests on the new image before pushing + run: | + echo 'check if accelerate is installed and in the PATH' + IMAGE_NAME=${{ vars.QUAY_REPOSITORY }}fms-hf-tuning:main-nvcr-latest + docker run --rm -it --entrypoint which "$IMAGE_NAME" accelerate + echo 'checks done' - name: Push docker image for every commit to Quay.io as dev images run: | docker push ${{ vars.QUAY_REPOSITORY }}fms-hf-tuning:main-nvcr-latest