From df60fad8e9e3c70c26f16a3f81ce0245034fb23c Mon Sep 17 00:00:00 2001 From: Chmouel Boudjnah Date: Wed, 26 Jun 2024 13:45:29 +0200 Subject: [PATCH] fix login to auth_token fix login to ghcr removing the https --- .github/workflows/latest.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/latest.yaml b/.github/workflows/latest.yaml index cc7a86bed..55af66a9e 100644 --- a/.github/workflows/latest.yaml +++ b/.github/workflows/latest.yaml @@ -65,13 +65,14 @@ jobs: - name: tests env: - auth_token: ${{ secrets.OSP_PAC_GITHUB_TOKEN }} + OSP_PAC_GITHUB_TOKEN: ${{ secrets.OSP_PAC_GITHUB_TOKEN }} + OSP_PAC_USERNAME: os-pac run: | set -euxfo pipefail REGISTRY=registry.registry.svc.cluster.local:32222 KO_DOCKER_REPO=ghcr.io/openshift-pipelines/tekton-caches IMAGE_REF="${KO_DOCKER_REPO}/cache:$(git rev-parse HEAD | tr -d '\n')" - echo "${auth_token}" | ko login https://ghcr.io --username osp-pac --password-stdin + echo "${OSP_PAC_GITHUB_TOKEN}" | ko login ghcr.io --username ${OSP_PAC_USERNAME} --password-stdin kubectl -n registry get deployment kubectl -n registry port-forward deployment/registry 5000:5000 &