Skip to content

Commit

Permalink
Merge pull request #1232 from ErikJiang/fix_prev_dockerfile_commit
Browse files Browse the repository at this point in the history
Remove quotes from Dockerfile commit values in image building CI
  • Loading branch information
ErikJiang authored May 10, 2024
2 parents 8d76381 + 04e69a3 commit 33d09f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/call-build-imgs-for-spray.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
skopeo list-tags --registry-token ${ghcr_token} docker://ghcr.io/${{ inputs.REPO }}/kubespray | jq '.Tags' | tr -d '[",]' > tags
if grep -q ${commit_short_sha} tags; then
late_img_dockerfile_commit=${{ needs.output-variable.outputs.dockerfile_commit }}
prev_img_dockerfile_commit=$(skopeo inspect docker://ghcr.io/${{ inputs.REPO }}/kubespray:${commit_short_sha} | jq '.Labels."io.kubean.dockerfile-commit"')
prev_img_dockerfile_commit=$(skopeo inspect docker://ghcr.io/${{ inputs.REPO }}/kubespray:${commit_short_sha} | jq '.Labels."io.kubean.dockerfile-commit"' | tr -d '"')
echo ">>>> late_img_dockerfile_commit: ${late_img_dockerfile_commit}"
echo ">>>> prev_img_dockerfile_commit: ${prev_img_dockerfile_commit}"
if [[ ${late_img_dockerfile_commit} == ${prev_img_dockerfile_commit} ]]; then
Expand Down

0 comments on commit 33d09f7

Please sign in to comment.