Skip to content

Commit

Permalink
refrencing env variable in oc login
Browse files Browse the repository at this point in the history
Signed-off-by: Rajpal Chauhan <[email protected]>
  • Loading branch information
rajpalc7 committed Jan 12, 2024
1 parent 8cb64bc commit c8fc06a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/actions/deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c8fc06a

Please sign in to comment.