From 277ede9a606e49373d073f2d007fa7b069be96c9 Mon Sep 17 00:00:00 2001 From: Thomas Buckley-Houston Date: Thu, 21 Jul 2022 12:30:57 -0400 Subject: [PATCH] ci: Also push Docker image 'latest' tag --- scripts/docker.bash | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/docker.bash b/scripts/docker.bash index e87086f3..96fbf495 100644 --- a/scripts/docker.bash +++ b/scripts/docker.bash @@ -25,8 +25,15 @@ function docker_login() { -p "$DOCKER_ACCESS_TOKEN" } +function docker_tag_latest() { + local latest=browsh/browsh:latest + docker tag "$(docker_image_name)" "$latest" + docker push "$latest" +} + function docker_release() { ! is_docker_logged_in && try_docker_login docker_build docker push "$(docker_image_name)" + docker_tag_latest }