From 2454adb92070f8a98e2d684d71c3c08ba1049626 Mon Sep 17 00:00:00 2001 From: Bettina Heim Date: Thu, 24 Oct 2024 21:39:22 +0200 Subject: [PATCH] Adding missing login (#2317) Signed-off-by: Bettina Heim --- .github/workflows/python_wheels.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/python_wheels.yml b/.github/workflows/python_wheels.yml index c3d949b5ff..990377375c 100644 --- a/.github/workflows/python_wheels.yml +++ b/.github/workflows/python_wheels.yml @@ -52,6 +52,19 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + - name: Log in to DockerHub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_READONLY_TOKEN }} + + - name: Login to GitHub CR + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ github.token }} + - name: Restore build environment if: inputs.devdeps_cache && inputs.devdeps_archive id: restore @@ -98,12 +111,6 @@ jobs: # do not change this prefix without adjusting other workflows echo "artifact_name=pycudaq-$cache_id" >> $GITHUB_OUTPUT - - name: Log in to DockerHub - uses: docker/login-action@v3 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_READONLY_TOKEN }} - - name: Set up context for buildx run: | docker context create builder_context