File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build and Run Docker
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ pull_request :
8
+ branches :
9
+ - main
10
+
11
+ jobs :
12
+ build-and-run-docker :
13
+ runs-on : ubuntu-latest
14
+
15
+ steps :
16
+ - name : Checkout code
17
+ uses : actions/checkout@v4
18
+
19
+ - name : Set up Docker Buildx
20
+ uses : docker/setup-buildx-action@v3
21
+
22
+ # Build the Docker image
23
+ - name : Build Docker image
24
+ run : |
25
+ docker build -t tf2.4_ivim-mri_codecollection -f Docker/Dockerfile .
26
+
27
+ # Run the Docker container
28
+ - name : Run Docker container
29
+ run : |
30
+ docker run -it --rm --name TF2.4_IVIM-MRI_CodeCollection \
31
+ -v ${{ github.workspace }}:/usr/src/app \
32
+ -v ${{ github.workspace }}:/usr/app/output \
33
+ tf2.4_ivim-mri_codecollection brain.nii.gz brain.bvec brain.bval
You can’t perform that action at this time.
0 commit comments