@@ -261,15 +261,6 @@ jobs:
261261 fetch-depth : 0 # so that Dunamai produce the correct version
262262 - uses : ./.github/actions/install-python
263263
264- # To pull ghcr.io/rs-python/apikey-manager
265- # TODO: to be changed when the apikey manager will have its own container registry.
266- - name : Log into Docker registry
267- uses : docker/login-action@v3
268- with :
269- registry : ${{ env.DOCKER_REGISTRY }}
270- username : ${{ github.actor }}
271- password : ${{ secrets.GITHUB_TOKEN }}
272-
273264 - name : Generate the aggregated openapi.json/swagger
274265 run : |
275266 set -x
@@ -493,7 +484,7 @@ jobs:
493484 - uses : actions/checkout@v4
494485
495486 # Download .whl files into a local dir
496- # TODO: the following 5 comments have to be activated when the pydantic conflict is solved
487+ # TODO: the next 5 commented lines must be reactivated when the pydantic conflict is solved
497488 # - name: Download .whl dependencies
498489 # uses: actions/download-artifact@v4
499490 # with:
@@ -524,6 +515,50 @@ jobs:
524515 branch_name : ${{ needs.set-env.outputs.branch_name }}
525516 debug_mode : ${{ needs.set-env.outputs.debug_mode }}
526517
518+ dask-staging-local-img :
519+ if : github.actor != 'dependabot[bot]'
520+ runs-on : ubuntu-latest
521+ name : " 'dask-gateway-server/staging/local' Docker image"
522+ # TODO: this has to be activated when the pydantic conflict is solved
523+ # needs: [set-env, services-common-whl, services-staging-whl]
524+ # TODO: this has to be deleted when the pydantic conflict is solved
525+ needs : [set-env, services-staging-whl]
526+ permissions : write-all
527+ outputs :
528+ docker_image : ${{ steps.publish-docker.outputs.docker_image}}
529+ steps :
530+ - uses : actions/checkout@v4
531+
532+ # Download .whl files into a local dir
533+ # TODO: the next 5 commented lines must be reactivated when the pydantic conflict is solved
534+ # - name: Download .whl dependencies
535+ # uses: actions/download-artifact@v4
536+ # with:
537+ # name: ${{ needs.services-common-whl.outputs.package_name }}
538+ # path: ./whl
539+ - name : Download .whl dependencies
540+ uses : actions/download-artifact@v4
541+ with :
542+ name : ${{ needs.services-staging-whl.outputs.package_name }}
543+ path : ./build_context_path
544+
545+ - id : publish-docker
546+ uses : ./.github/actions/publish-docker
547+ with :
548+ dockerfile : ./services/staging/.github/Dockerfile.dask-staging-local
549+ build_context_path : ./build_context_path
550+ image_basename : " ${{ github.repository_owner }}/dask-gateway-server"
551+ image_suffix : /staging/local
552+ version_name : ${{ needs.services-staging-whl.outputs.version_name }}
553+ dockerhub_username : ${{ vars.DOCKERHUB_USERNAME }}
554+ dockerhub_token : ${{ secrets.DOCKERHUB_TOKEN }}
555+ github_token : ${{ secrets.GITHUB_TOKEN }}
556+ docker_tag : ${{ needs.set-env.outputs.docker_tag }}
557+ branch_name : ${{ needs.set-env.outputs.branch_name }}
558+ debug_mode : false
559+ build_args : |
560+ DASK_GATEWAY_TAG=2024.1.0
561+
527562 # ##########
528563 # TESTING #
529564 # ##########
@@ -547,12 +582,8 @@ jobs:
547582 run : |
548583 set -x
549584
550- # Clone the rs-demo repository.
551- # Use the ssh public key from: https://github.com/RS-PYTHON/rs-demo/settings/keys
552- # and the private key from: https://github.com/RS-PYTHON/rs-server/settings/secrets/actions
553- eval "$(ssh-agent -s)"
554- ssh-add - <<< "${{ secrets.RS_DEMO_PRIVATE_SSH_KEY }}"
555- git clone [email protected] :RS-PYTHON/rs-demo.git 585+ # Clone the rs-demo repository
586+ git clone https://github.com/RS-PYTHON/rs-demo.git
556587
557588 # Try to checkout in rs-demo the same branch name than in rs-server.
558589 # If the branch doesn't exist, it's ok, we stay on the default branch.
0 commit comments