Skip to content

Commit

Permalink
disable for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Devon Ryan committed Nov 1, 2022
1 parent ecd7aae commit 5275593
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions .github/workflows/bot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,35 +63,35 @@ jobs:
done
buildah rmi --prune || true
- name: Check Tags
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 \
'https://quay.io/api/v1/repository/bioconda/${{ steps.buildah-build.outputs.image }}/image'
)"
#- name: Check Tags
# 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 \
# 'https://quay.io/api/v1/repository/bioconda/${{ steps.buildah-build.outputs.image }}/image'
# )"

existing_tags="$(
printf %s "${respone}" \
| jq -r '.images[].tags[]'
)" \
|| {
printf %s\\n \
'Could not get list of image tags.' \
'Does the repository exist on Quay.io?' \
'Quay.io REST API response was:' \
"${respone}"
exit 1
}
for tag in ${{ steps.buildah-build.outputs.tags }} ; do
if [ \! "${tag}" = '${{ matrix.tag }}' ] ; then
if printf %s "${existing_tags}" | grep -qxF "${tag}" ; then
printf 'Tag %s already exists!\n' "${tag}"
exit 1
fi
fi
done
# existing_tags="$(
# printf %s "${respone}" \
# | jq -r '.images[].tags[]'
# )" \
# || {
# printf %s\\n \
# 'Could not get list of image tags.' \
# 'Does the repository exist on Quay.io?' \
# 'Quay.io REST API response was:' \
# "${respone}"
# exit 1
# }
# for tag in ${{ steps.buildah-build.outputs.tags }} ; do
# if [ \! "${tag}" = '${{ matrix.tag }}' ] ; then
# if printf %s "${existing_tags}" | grep -qxF "${tag}" ; then
# printf 'Tag %s already exists!\n' "${tag}"
# exit 1
# fi
# fi
# done

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

0 comments on commit 5275593

Please sign in to comment.