Skip to content

Commit 4716bfe

Browse files
ci: fix issues with the container image by adding some sanity checks before pushing (#670)
Signed-off-by: Harikrishnan Balagopal <harikrishmenon@gmail.com>
1 parent ea8c6c7 commit 4716bfe

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/image.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ jobs:
1919
registry: quay.io
2020
username: ${{ secrets.QUAY_USERNAME }}
2121
password: ${{ secrets.QUAY_ROBOT_TOKEN }}
22+
- name: Run basic sanity checks/tests on the new image before pushing
23+
run: |
24+
echo 'check if accelerate is installed and in the PATH'
25+
IMAGE_NAME=${{ vars.QUAY_REPOSITORY }}fms-hf-tuning:main-nvcr-latest
26+
docker run --rm -it --entrypoint which "$IMAGE_NAME" accelerate
27+
echo 'checks done'
2228
- name: Push docker image for every commit to Quay.io as dev images
2329
run: |
2430
docker push ${{ vars.QUAY_REPOSITORY }}fms-hf-tuning:main-nvcr-latest

0 commit comments

Comments
 (0)