From bd49ee763ccb9ccb86715369f322e1328b6e1bc8 Mon Sep 17 00:00:00 2001 From: sophia Date: Mon, 20 Jan 2025 12:24:14 -0800 Subject: [PATCH] debug --- .github/workflows/test_local_integration.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test_local_integration.yaml b/.github/workflows/test_local_integration.yaml index 97152a659..05712ceef 100644 --- a/.github/workflows/test_local_integration.yaml +++ b/.github/workflows/test_local_integration.yaml @@ -172,12 +172,12 @@ jobs: # install conda-store-server python -m pip install conda-store/conda-store-server - - name: Get conda store token from terraform state + - name: Get conda-store token from terraform state id: conda-store-token working-directory: ${{ steps.init.outputs.directory }} run: | - cat stages/07-kubernetes-services/terraform.tfstate | jq | grep conda-store-service-account | sed -n '2 p' | tr -s ' ' | sed "s/\"config.json\": \"//" | sed -e 's/\\\"/\"/g' -e 's/^.//g' -e 's/.$//g' | jq '."service-tokens-mapping"."conda-store-service-account"' - echo "CONDA_STORE_TOKEN=$(cat stages/07-kubernetes-services/terraform.tfstate | jq | grep conda-store-service-account | sed -n '2 p' | tr -s ' ' | sed "s/\"config.json\": \"//" | sed -e 's/\\\"/\"/g' -e 's/^.//g' -e 's/.$//g' | jq '."service-tokens-mapping"."conda-store-service-account"')" >> "$GITHUB_OUTPUT" + kubectl get secret -n default tfstate-default-${{ steps.init.outputs.project }}-dev-07-kubernetes-services --template={{.data}} | cut -d ":" -f2 | cut -d "]" -f1 | base64 --decode | gzip -d --to-stdout > terraform_state + echo "CONDA_STORE_TOKEN=$(cat terraform_state | jq | grep conda-store-service-account | sed -n '2 p' | tr -s ' ' | sed "s/\"config.json\": \"//" | sed -e 's/\\\"/\"/g' -e 's/^.//g' -e 's/.$//g' | jq '."service-tokens-mapping"."conda-store-service-account"')" | tee --append "${GITHUB_OUTPUT}" - name: Run conda-store-server user_journey tests env: