@@ -9,44 +9,66 @@ name: Docker images
99on :
1010 push :
1111 branches :
12- - main
13- - ' dspace-** '
12+ - main-cris
13+ - ' dspace-cris-*_02_x '
1414 tags :
15- - ' dspace-**'
15+ - ' dspace-cris- **'
1616 pull_request :
1717
1818permissions :
1919 contents : read # to fetch code (actions/checkout)
2020 packages : write # to write images to GitHub Container Registry (GHCR)
2121
2222jobs :
23+
24+ # ###################################################
25+ # Build/Push the '4science/dspace-cris-dependencies' image.
26+ # This image is used by all other DSpace build jobs.
27+ # ###################################################
28+ dspace-cris-angular-dependencies :
29+ # Ensure this job never runs on forked repos. It's only executed for '4science/dspace'
30+ if : github.repository == '4science/dspace-angular'
31+ # Use the reusable-docker-build.yml script from DSpace/DSpace repo to build our Docker image
32+ uses : 4science/DSpace/.github/workflows/reusable-docker-build.yml@dspace-cris-2024_02_x
33+ with :
34+ build_id : dspace-cris-angular-dependencies
35+ image_name : 4science/dspace-cris-angular-dependencies
36+ dockerfile_path : ./Dockerfile.dependencies
37+ secrets :
38+ DOCKER_USERNAME : ${{ secrets.DOCKER_USERNAME }}
39+ DOCKER_ACCESS_TOKEN : ${{ secrets.DOCKER_ACCESS_TOKEN }}
40+
41+
2342 # ############################################################
24- # Build/Push the 'dspace /dspace-angular' image
43+ # Build/Push the '4science /dspace-cris -angular' image
2544 # ############################################################
2645 dspace-angular :
2746 # Ensure this job never runs on forked repos. It's only executed for 'dspace/dspace-angular'
28- if : github.repository == 'dspace /dspace-angular'
47+ if : github.repository == '4science /dspace-angular'
2948 # Use the reusable-docker-build.yml script from DSpace/DSpace repo to build our Docker image
30- uses : DSpace/DSpace/.github/workflows/reusable-docker-build.yml@main
49+ uses : 4science/DSpace/.github/workflows/reusable-docker-build.yml@dspace-cris-2024_02_x
50+ needs : dspace-cris-angular-dependencies
3151 with :
32- build_id : dspace-angular-dev
33- image_name : dspace /dspace-angular
52+ build_id : dspace-cris- angular-dev
53+ image_name : 4science /dspace-cris -angular
3454 dockerfile_path : ./Dockerfile
3555 secrets :
3656 DOCKER_USERNAME : ${{ secrets.DOCKER_USERNAME }}
3757 DOCKER_ACCESS_TOKEN : ${{ secrets.DOCKER_ACCESS_TOKEN }}
3858
3959 # ############################################################
40- # Build/Push the 'dspace /dspace-angular' image ('-dist' tag)
60+ # Build/Push the '4science /dspace-cris -angular' image ('-dist' tag)
4161 # ############################################################
4262 dspace-angular-dist :
4363 # Ensure this job never runs on forked repos. It's only executed for 'dspace/dspace-angular'
44- if : github.repository == 'dspace /dspace-angular'
64+ if : github.repository == '4science /dspace-angular'
4565 # Use the reusable-docker-build.yml script from DSpace/DSpace repo to build our Docker image
46- uses : DSpace/DSpace/.github/workflows/reusable-docker-build.yml@main
66+ uses : 4science/DSpace/.github/workflows/reusable-docker-build.yml@dspace-cris-2024_02_x
67+ # Must run after 'dspace-dependencies' job above
68+ needs : dspace-cris-angular-dependencies
4769 with :
48- build_id : dspace-angular-dist
49- image_name : dspace /dspace-angular
70+ build_id : dspace-cris- angular-dist
71+ image_name : 4science /dspace-cris -angular
5072 dockerfile_path : ./Dockerfile.dist
5173 # As this is a "dist" image, its tags are all suffixed with "-dist". Otherwise, it uses the same
5274 # tagging logic as the primary 'dspace/dspace-angular' image above.
0 commit comments