From 5659f6d880ce6e3e245af0c5a142edd0062dc2e6 Mon Sep 17 00:00:00 2001 From: sandhya1874 Date: Mon, 7 Oct 2024 13:34:00 +0100 Subject: [PATCH] . --- .github/workflows/test_docker_build.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test_docker_build.yml b/.github/workflows/test_docker_build.yml index 2bc9a5f..531e95f 100644 --- a/.github/workflows/test_docker_build.yml +++ b/.github/workflows/test_docker_build.yml @@ -40,13 +40,6 @@ 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 - id: quay_login - if: ${{ inputs.docker_registry }} == 'ghcr.io' - 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 - name: Docker login if Docker registry is quay.io @@ -54,8 +47,8 @@ jobs: uses: docker/login-action@v2 with: registry: ${{ inputs.docker_registry }} - username: ${{ steps.quay_login.outputs.username }} - password: ${{ steps.quay_login.outputs.token }} + username: ${{ secrets.HMPPS_QUAYIO_USER }} + password: ${{ secrets.HMPPS_QUAYIO_TOKEN }} - name: Docker login if Docker registry is ghcr.io if: "${{ inputs.docker_registry }}" == "ghcr.io"