Docker Image Test #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Image Test | |
on: | |
workflow_run: | |
workflows: ["Docker Build and Publish"] | |
types: | |
- completed | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
steps: | |
- name: Checkout Repository | |
uses: actions/[email protected] | |
- name: Pull Docker Image from Docker Hub | |
run: docker pull midralab/generate-image-api-for-lcm:latest | |
- name: Run Docker Image | |
run: docker run --rm midralab/generate-image-api-for-lcm:latest | |
# モデルファイルの存在を確認 | |
- name: List Model Files | |
run: | | |
docker run --rm midralab/generate-image-api-for-lcm:latest bash -c "ls /usr/src/app" |