Skip to content

Commit

Permalink
use yq
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
  • Loading branch information
wagoodman committed Sep 6, 2024
1 parent 498962f commit 32306bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,8 @@ tasks:
PURPLE='\033[0;35m'
RESET='\033[0m'
LATEST_FINGERPRINT=$(docker manifest inspect {{ .CACHE_IMAGE }} | jq -r '.annotations.fingerprint')
WANT_FINGERPRINT=$(cat {{ .CACHE_PATHS_FILE }} | jq -r '.digest')
LATEST_FINGERPRINT=$(docker manifest inspect {{ .CACHE_IMAGE }} | {{ .YQ }} -r '.annotations.fingerprint')
WANT_FINGERPRINT=$(cat {{ .CACHE_PATHS_FILE }} | {{ .YQ }} -r '.digest')
echo "latest cache: $LATEST_FINGERPRINT"
echo "desired cache: $WANT_FINGERPRINT"
Expand Down Expand Up @@ -375,7 +375,7 @@ tasks:
deps: [tools]
vars:
CACHE_DIGEST:
sh: docker manifest inspect {{ .CACHE_IMAGE }} | jq -r '.annotations.fingerprint'
sh: docker manifest inspect {{ .CACHE_IMAGE }} | {{ .YQ }} -r '.annotations.fingerprint'
cmds:
- "ORAS_CACHE={{ .ORAS_CACHE }} {{ .ORAS }} pull {{ .CACHE_IMAGE }}"
- "cp {{ .CACHE_PATHS_FILE }} {{ .LAST_CACHE_PULL_FILE }}"
Expand Down

0 comments on commit 32306bc

Please sign in to comment.