Skip to content

Commit

Permalink
fix(ci): allow grep to work with bsd and gnu versions
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Davis <[email protected]>
  • Loading branch information
Savid authored Mar 18, 2024
1 parent 007ec0b commit f1651b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ runs:
if: inputs.build_script
run: |
cat << EOF
digest: $(docker image inspect --format='{{index .RepoDigests 0}}' ${{ inputs.target_repository }}:${{ inputs.target_tag }} | grep -oP "@\K.*")
digest: $(docker image inspect --format='{{index .RepoDigests 0}}' ${{ inputs.target_repository }}:${{ inputs.target_tag }} | grep -oE "@(.*)" | cut -d'@' -f2-)
tags:
${{ inputs.target_repository }}:${{ inputs.target_tag }}
${{ inputs.target_repository }}:${{ inputs.target_tag }}-${{ steps.git_commit_hash.outputs.git_commit_hash }}
Expand Down

0 comments on commit f1651b7

Please sign in to comment.