From 3bb5f6111e1159c1be824ea02fee2142240bc2fb Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Thu, 28 Sep 2023 17:00:31 +0200 Subject: [PATCH] Add required token for tag check The outer quote for the subshell isn't needed. --- .github/workflows/base-glibc-debian-bash.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/base-glibc-debian-bash.yaml b/.github/workflows/base-glibc-debian-bash.yaml index b3f94aa3..539aa6a9 100644 --- a/.github/workflows/base-glibc-debian-bash.yaml +++ b/.github/workflows/base-glibc-debian-bash.yaml @@ -92,13 +92,14 @@ jobs: run: | # FIX upstream: Quay.io does not support immutable images currently. # => Try to use the REST API to check for duplicate tags. - respone="$( - curl -sL \ + response=$( + curl -H "Authorization: Bearer $TOKEN" \ + -sL \ 'https://quay.io/api/v1/repository/bioconda/${{ steps.buildah-build.outputs.image }}/image' - )" + ) existing_tags="$( - printf %s "${respone}" \ + printf %s "${response}" \ | jq -r '.images[].tags[]' )" \ || { @@ -117,6 +118,8 @@ jobs: fi fi done + env: + TOKEN: ${{ secrets.secrets.QUAY_BIOCONDA_TOKEN }} - if: ${{ github.ref == 'refs/heads/main' }} name: Push