From f0ccf6a15a68de478190e7b28538cb83df20e5c7 Mon Sep 17 00:00:00 2001 From: sandhya1874 Date: Mon, 7 Oct 2024 13:22:49 +0100 Subject: [PATCH] . --- .github/workflows/test_docker_build.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test_docker_build.yml b/.github/workflows/test_docker_build.yml index 2f073d1..9abf4fc 100644 --- a/.github/workflows/test_docker_build.yml +++ b/.github/workflows/test_docker_build.yml @@ -40,15 +40,20 @@ jobs: version=$(date '+%Y-%m-%d').${{ github.run_number }}.$(echo ${{ github.sha }} | cut -c1-7) echo "version=$version" | tee -a "$GITHUB_OUTPUT" + - name: Set quay.io variables if docker registry is ghcr.io + env: + username: ${{ secrets.HMPPS_QUAYIO_USER }} + token: ${{ secrets.HMPPS_QUAYIO_TOKEN }} + - uses: docker/setup-qemu-action@v2 - uses: docker/setup-buildx-action@v2 - # - name: Docker login if Docker registry is quay.io - # if: ${{ inputs.docker_registry }} == 'quay.io' - # uses: docker/login-action@v2 - # with: - # registry: ${{ inputs.docker_registry }} - # username: ${{ secrets.HMPPS_QUAYIO_USER }} - # password: ${{ secrets.HMPPS_QUAYIO_TOKEN }} + - name: Docker login if Docker registry is quay.io + if: ${{ inputs.docker_registry }} == 'quay.io' + uses: docker/login-action@v2 + with: + registry: ${{ inputs.docker_registry }} + username: ${{ username }} + password: ${{ token }} - name: Docker login if Docker registry is ghcr.io if: ${{ inputs.docker_registry }} == 'ghcr.io'