Skip to content

Commit

Permalink
feat: Tag docker image with major.minor version
Browse files Browse the repository at this point in the history
  • Loading branch information
fmarek-kindred committed Mar 18, 2024
1 parent b5ef31b commit 06ef74c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions bin/ghcr-publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,17 @@ push_tag() {
if [ "${tag}" == "" ];
then
echo "docker build --tag $tag_ref ."
docker build --tag $tag_ref .
echo "docker push $tag_ref"
docker push $tag_ref
docker build --tag "${tag_ref} .
echo "docker push ${tag_ref}"
docker push "${tag_ref}"
echo ""
else
new_tag_ref=ghcr.io/kindredgroup/pit-toolkit/$tag
echo "docker tag $tag_ref $new_tag_ref"
docker tag $tag_ref $new_tag_ref
echo "docker tag ${tag_ref} ${new_tag_ref}"
docker tag "${tag_ref}" "${new_tag_ref}"
echo "docker push $new_tag_ref"
docker push $new_tag_ref
echo "docker push ${new_tag_ref}"
docker push "${new_tag_ref}"
echo ""
fi
}
Expand Down

0 comments on commit 06ef74c

Please sign in to comment.