9797
9898 docker :
9999 needs : deploy-pypi
100- timeout-minutes : 30
100+ timeout-minutes : 30
101101 runs-on : ubuntu-latest
102102 steps :
103103 - name : Checkout
@@ -112,58 +112,46 @@ jobs:
112112 registry : ghcr.io
113113 username : ${{ github.actor }}
114114 password : ${{ secrets.GITHUB_TOKEN }}
115- - name : Download diracx wheels
116- uses : actions/download-artifact@v8
117- with :
118- name : diracx-whl
119- - name : " Find wheels"
120- id : find_wheel
121- run : |
122- # We need to copy them there to be able to access them in the RUN --mount
123- cp diracx*.whl containers/client/
124- cp diracx*.whl containers/services/
125- for wheel_fn in *.whl; do
126- pkg_name=$(basename "${wheel_fn}" | cut -d '-' -f 1)
127- echo "${pkg_name}-wheel-name=$(ls "${pkg_name}"-*.whl)" >> $GITHUB_OUTPUT
128- done
129115
130- - name : Build and push client (release)
116+ - name : Build and push services (release)
131117 uses : docker/build-push-action@v7
132118 if : ${{ needs.deploy-pypi.outputs.create-release == 'true' }}
133119 with :
134- context : containers/client/
135- push : ${{ needs.deploy-pypi.outputs.create-release == 'true' }}
136- tags : " ghcr.io/diracgrid/diracx/client:${{ needs.deploy-pypi.outputs.new-version }}"
120+ context : .
121+ file : containers/Dockerfile
122+ build-args : PIXI_ENV=container-services
123+ push : true
124+ tags : " ghcr.io/diracgrid/diracx/services:${{ needs.deploy-pypi.outputs.new-version }}"
137125 platforms : linux/amd64,linux/arm64
138- build-args : EXTRA_PACKAGES_TO_INSTALL=DIRACCommon~=9.0.0
139- - name : Build and push services (release)
126+ - name : Build and push client (release)
140127 uses : docker/build-push-action@v7
141128 if : ${{ needs.deploy-pypi.outputs.create-release == 'true' }}
142129 with :
143- context : containers/services/
144- push : ${{ needs.deploy-pypi.outputs.create-release == 'true' }}
145- tags : " ghcr.io/diracgrid/diracx/services:${{ needs.deploy-pypi.outputs.new-version }}"
130+ context : .
131+ file : containers/Dockerfile
132+ build-args : PIXI_ENV=container-client
133+ push : true
134+ tags : " ghcr.io/diracgrid/diracx/client:${{ needs.deploy-pypi.outputs.new-version }}"
146135 platforms : linux/amd64,linux/arm64
147- build-args : EXTRA_PACKAGES_TO_INSTALL=DIRACCommon~=9.0.0
148136
149- - name : Build and push client (dev)
137+ - name : Build and push services (dev)
150138 uses : docker/build-push-action@v7
151139 with :
152- context : containers/client/
140+ context : .
141+ file : containers/Dockerfile
142+ build-args : PIXI_ENV=container-services
153143 push : ${{ github.event_name != 'pull_request' && github.repository == 'DIRACGrid/diracx' && github.ref_name == 'main' }}
154- tags : ghcr.io/diracgrid/diracx/client :dev
144+ tags : ghcr.io/diracgrid/diracx/services :dev
155145 platforms : linux/amd64,linux/arm64
156- build-args : |
157- EXTRA_PACKAGES_TO_INSTALL=git+https://github.com/DIRACGrid/DIRAC.git@integration#egg=diraccommon\&subdirectory=dirac-common
158- - name : Build and push services (dev)
146+ - name : Build and push client (dev)
159147 uses : docker/build-push-action@v7
160148 with :
161- context : containers/services/
149+ context : .
150+ file : containers/Dockerfile
151+ build-args : PIXI_ENV=container-client
162152 push : ${{ github.event_name != 'pull_request' && github.repository == 'DIRACGrid/diracx' && github.ref_name == 'main' }}
163- tags : ghcr.io/diracgrid/diracx/services :dev
153+ tags : ghcr.io/diracgrid/diracx/client :dev
164154 platforms : linux/amd64,linux/arm64
165- build-args : |
166- EXTRA_PACKAGES_TO_INSTALL=git+https://github.com/DIRACGrid/DIRAC.git@integration#egg=diraccommon\&subdirectory=dirac-common
167155
168156 update-charts :
169157 name : Update Helm charts
0 commit comments