Skip to content

Commit

Permalink
Merge pull request #57 from mvdbeek/fix_tag_check
Browse files Browse the repository at this point in the history
Add required token for tag check
  • Loading branch information
bgruening authored Sep 29, 2023
2 parents 73b91f6 + 3bb5f61 commit 0fc3512
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/base-glibc-debian-bash.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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[]'
)" \
|| {
Expand All @@ -117,6 +118,8 @@ jobs:
fi
fi
done
env:
TOKEN: ${{ secrets.secrets.QUAY_BIOCONDA_TOKEN }}

- if: ${{ github.ref == 'refs/heads/main' }}
name: Push
Expand Down

0 comments on commit 0fc3512

Please sign in to comment.