Skip to content

Commit

Permalink
Added a yml file to build the docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
Unique-Usman committed Aug 11, 2024
1 parent a55aec3 commit af49849
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/docker-build-and-run.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build and Run Docker

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build-and-run-docker:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

# Build the Docker image
- name: Build Docker image
run: |
docker build -t tf2.4_ivim-mri_codecollection -f Docker/Dockerfile .
# Run the Docker container
- name: Run Docker container
run: |
docker run -it --rm --name TF2.4_IVIM-MRI_CodeCollection \
-v ${{ github.workspace }}:/usr/src/app \
-v ${{ github.workspace }}:/usr/app/output \
tf2.4_ivim-mri_codecollection brain.nii.gz brain.bvec brain.bval

0 comments on commit af49849

Please sign in to comment.