Skip to content

Commit

Permalink
ci: Also push Docker image 'latest' tag
Browse files Browse the repository at this point in the history
  • Loading branch information
tombh committed Jul 21, 2022
1 parent 3bc427f commit 277ede9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/docker.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 277ede9

Please sign in to comment.