Skip to content

Commit

Permalink
feat(scan-images): support secondary registry from variable
Browse files Browse the repository at this point in the history
ING-4250
  • Loading branch information
stempler committed Jun 25, 2024
1 parent 5c14dfc commit e2ca84d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/scan-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ jobs:
password: ${{ secrets.DOCKER_HUB_PASSWORD }}

- name: Login to secondary registry
if: inputs.secondaryRegistry != ''
if: ${{ vars.SECONDARY_REGISTRY != '' || inputs.secondaryRegistry != '' }}
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v3.2.0
with:
registry: ${{ inputs.secondaryRegistry }}
registry: ${{ vars.SECONDARY_REGISTRY != '' && vars.SECONDARY_REGISTRY || inputs.secondaryRegistry }}
username: ${{ secrets.SECONDARY_REGISTRY_USERNAME }}
password: ${{ secrets.SECONDARY_REGISTRY_PASSWORD }}

Expand Down

0 comments on commit e2ca84d

Please sign in to comment.