Strip string doublequotes from meta jq output

This commit is contained in:
Zedifus 2022-03-24 22:07:50 +00:00
parent cd0a6c0e88
commit 0f41e1ae25

View File

@ -95,7 +95,7 @@ docker-build-dev:
MAJOR=$(cat app/config/version.json | jq '.major' ) MAJOR=$(cat app/config/version.json | jq '.major' )
MINOR=$(cat app/config/version.json | jq '.minor' ) MINOR=$(cat app/config/version.json | jq '.minor' )
SUB=$(cat app/config/version.json | jq '.sub' ) SUB=$(cat app/config/version.json | jq '.sub' )
META=$(cat app/config/version.json | jq '.meta' ) META=$(cat app/config/version.json | jq -r '.meta' )
- | - |
apk --no-cache add curl apk --no-cache add curl
latest_tag=$(curl -s https://api.github.com/repos/docker/buildx/releases/latest | sed -Ene '/^ *"tag_name": *"(v.+)",$/s//\1/p') latest_tag=$(curl -s https://api.github.com/repos/docker/buildx/releases/latest | sed -Ene '/^ *"tag_name": *"(v.+)",$/s//\1/p')
@ -150,7 +150,7 @@ docker-build-prod:
MAJOR=$(cat app/config/version.json | jq '.major' ) MAJOR=$(cat app/config/version.json | jq '.major' )
MINOR=$(cat app/config/version.json | jq '.minor' ) MINOR=$(cat app/config/version.json | jq '.minor' )
SUB=$(cat app/config/version.json | jq '.sub' ) SUB=$(cat app/config/version.json | jq '.sub' )
META=$(cat app/config/version.json | jq '.meta' ) META=$(cat app/config/version.json | jq -r '.meta' )
- | - |
apk --no-cache add curl apk --no-cache add curl
latest_tag=$(curl -s https://api.github.com/repos/docker/buildx/releases/latest | sed -Ene '/^ *"tag_name": *"(v.+)",$/s//\1/p') latest_tag=$(curl -s https://api.github.com/repos/docker/buildx/releases/latest | sed -Ene '/^ *"tag_name": *"(v.+)",$/s//\1/p')