From c8fc06ab7bd6ab446e9fcf5c38dc208a820a2622 Mon Sep 17 00:00:00 2001 From: Rajpal Chauhan Date: Fri, 12 Jan 2024 10:34:56 -0800 Subject: [PATCH] refrencing env variable in oc login Signed-off-by: Rajpal Chauhan --- .github/workflows/actions/deploy/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/actions/deploy/action.yml b/.github/workflows/actions/deploy/action.yml index cbf079e..00b5a4b 100644 --- a/.github/workflows/actions/deploy/action.yml +++ b/.github/workflows/actions/deploy/action.yml @@ -69,11 +69,11 @@ runs: - name: Login in to OpenShift container registry shell: bash env: - REGISTRY_AUTH_PREFERENCE: docker + REGISTRY_AUTH_PREFERENCE: ${HOME}/.docker/config.json run: | oc version docker version - oc registry login --to="${HOME}/.docker/config.json" + oc registry login - name: Tag the image in the GHCR as ${{ inputs.environment }} shell: bash