@@ -20,16 +20,15 @@ defaults:
2020jobs :
2121
2222 build :
23- # DIsable the build temporarily
24- if : false
23+
2524 runs-on : ubuntu-latest
2625 outputs :
2726 image_version : ${{ steps.meta.outputs.version }}
2827 steps :
2928 - name : Log in to Docker Hub
3029 uses : docker/login-action@v1
3130 with :
32- username : ${{ secrets.DOCKER_HUB_USERNAME }}
31+ username : ${{ secrets.DOCKERHUB_USERNAME }}
3332 password : ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
3433
3534 - name : Set up Docker Buildx
@@ -49,11 +48,14 @@ jobs:
4948 type=ref,event=tag
5049 type=ref,event=pr
5150 type=sha
51+ # Create version tag based on tag prefix
52+ type=match,pattern=medcat-service/v(\d+\.\d+\.\d+),group=1
5253
5354 - name : Build and push Docker MedCATservice image
5455 id : docker_build
5556 uses : docker/build-push-action@v6
5657 with :
58+ context : " {{defaultContext}}:medcat-service" # Set the working directory as the action doesnt use the working-directory default
5759 push : true
5860 allow : network.host
5961 tags : ${{ steps.meta.outputs.tags }}
@@ -75,11 +77,14 @@ jobs:
7577 type=ref,event=tag
7678 type=ref,event=pr
7779 type=sha
80+ # Create version tag based on tag prefix
81+ type=match,pattern=medcat-service/v(\d+\.\d+\.\d+),group=1
7882
7983 - name : Build and push Docker Jupyter singleuser image with GPU support
8084 id : docker_build_gpu
8185 uses : docker/build-push-action@v6
8286 with :
87+ context : " {{defaultContext}}:medcat-service" # Set the working directory as the action doesnt use the working-directory default
8388 file : " Dockerfile_gpu"
8489 allow : network.host
8590 tags : ${{ steps.meta-gpu.outputs.tags }}
9095
9196 - name : Image digest
9297 run : echo ${{ steps.docker_build.outputs.digest }}
98+ working-directory : " ./"
9399 integration_test :
94100 runs-on : ubuntu-latest
95101 needs : build
0 commit comments