Update push-docker.yml

This commit is contained in:
Anthony Stirling 2023-02-05 23:05:21 +00:00 committed by GitHub
parent 37523811e2
commit a3fa6f5c7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,7 @@ jobs:
- name: Check if tag exists
run: |
response=$(curl -s https://hub.docker.com/v2/repositories/frooodle/s-pdf/tags/?name={{ steps.versionNumber.outputs.versionNumber }}")
response=$(curl -s https://hub.docker.com/v2/repositories/frooodle/s-pdf/tags/?name=${{ steps.versionNumber.outputs.versionNumber }}")
result=$(echo $response | jq ".results")
if [ "$result" == "[]" ]; then
echo "Tag {{ steps.versionNumber.outputs.versionNumber }} doesnt exist. Continuing with build and push."