@@ -113,15 +113,19 @@ jobs:
113113 with :
114114 cache : false
115115 environments : ${{ matrix.extension == 'diracx' && 'default' || 'default-gubbins' }}
116- - name : Build gubbins wheels
117- if : ${{ matrix.extension == 'gubbins' }}
116+ - name : Build diracx wheels
118117 run : |
119118 for pkg_dir in $PWD/diracx-*; do
120119 echo "Building $pkg_dir"
121- pixi exec python-build --outdir $PWD/extensions/ containers/services/ $pkg_dir
120+ pixi exec python-build --outdir $PWD/containers/services/ $pkg_dir
122121 done
123122 # Also build the diracx metapackage
124- pixi exec python-build --outdir $PWD/extensions/containers/services/ .
123+ pixi exec python-build --outdir $PWD/containers/services/ .
124+ - name : Build gubbins wheels
125+ if : ${{ matrix.extension == 'gubbins' }}
126+ run : |
127+ cp $PWD/containers/services/*.whl $PWD/extensions/containers/services/
128+ cp $PWD/containers/services/*.tar.gz $PWD/extensions/containers/services/
125129 # And build the gubbins package
126130 for pkg_dir in $PWD/extensions/gubbins/gubbins-*; do
127131 # Skip the testing package
@@ -134,8 +138,21 @@ jobs:
134138 pixi exec python-build --outdir $PWD/extensions/containers/services/ $pkg_dir
135139 done
136140 - name : Set up Docker Buildx
137- if : ${{ matrix.extension == 'gubbins' }}
138141 uses : docker/setup-buildx-action@v3
142+ - name : Build container for diracx
143+ if : ${{ matrix.extension == 'diracx' }}
144+ uses : docker/build-push-action@v6
145+ with :
146+ context : containers/services
147+ tags : diracx/services:dev
148+ outputs : type=docker,dest=/tmp/diracx_services_image.tar
149+ build-args : |
150+ EXTRA_PACKAGES_TO_INSTALL=git+https://github.com/DIRACGrid/DIRAC.git@integration
151+ - name : Load image diracx
152+ if : ${{ matrix.extension == 'diracx' }}
153+ run : |
154+ docker load --input /tmp/diracx_services_image.tar
155+ docker image ls -a
139156 - name : Build container for gubbins
140157 if : ${{ matrix.extension == 'gubbins' }}
141158 uses : docker/build-push-action@v6
@@ -144,8 +161,9 @@ jobs:
144161 tags : gubbins/services:dev
145162 outputs : type=docker,dest=/tmp/gubbins_services_image.tar
146163 build-args : |
164+ EXTRA_PACKAGES_TO_INSTALL=git+https://github.com/DIRACGrid/DIRAC.git@integration
147165 EXTENSION_CUSTOM_SOURCES_TO_INSTALL=/bindmount/gubbins_db*.whl,/bindmount/gubbins_logic*.whl,/bindmount/gubbins_routers*.whl,/bindmount/gubbins_client*.whl
148- - name : Load image
166+ - name : Load image gubbins
149167 if : ${{ matrix.extension == 'gubbins' }}
150168 run : |
151169 docker load --input /tmp/gubbins_services_image.tar
@@ -176,7 +194,9 @@ jobs:
176194 demo_args+=("--ci-values" "./extensions/gubbins_values.yaml")
177195 demo_args+=("--load-docker-image" "gubbins/services:dev")
178196 demo_source_dirs+=("/tmp/gubbins/")
179- elif [ ${{ matrix.extension }} != 'diracx' ]; then
197+ elif [ ${{ matrix.extension }} == 'diracx' ]; then
198+ demo_args+=("--load-docker-image" "diracx/services:dev")
199+ else
180200 echo "Unknown extension: ${{ matrix.extension }}"
181201 exit 1
182202 fi
0 commit comments