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'