Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandhya1874 committed Oct 7, 2024
1 parent 270cc3b commit 25d74d2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/test_docker_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@ jobs:
echo "version=$version" | tee -a "$GITHUB_OUTPUT"
- name: Set quay.io variables if docker registry is ghcr.io
id: quay_login
if: ${{ inputs.docker_registry }} == 'ghcr.io'
env:
username: ${{ secrets.HMPPS_QUAYIO_USER }}
token: ${{ secrets.HMPPS_QUAYIO_TOKEN }}
run: |
echo "username=${{ secrets.HMPPS_QUAYIO_USER }}" | tee -a "$GITHUB_OUTPUT"
echo "token=${{ secrets.HMPPS_QUAYIO_TOKEN }}" | tee -a "$GITHUB_OUTPUT"
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
Expand All @@ -53,8 +54,8 @@ jobs:
uses: docker/login-action@v2
with:
registry: ${{ inputs.docker_registry }}
username: ${{ username }}
password: ${{ token }}
username: ${{ steps.quay_login.outputs.username }}
password: ${{ steps.quay_login.outputs.token }}

- name: Docker login if Docker registry is ghcr.io
if: ${{ inputs.docker_registry }} == 'ghcr.io'
Expand Down

0 comments on commit 25d74d2

Please sign in to comment.