From 59560dba59a11904b8d0cfea663b276661c85c34 Mon Sep 17 00:00:00 2001 From: Davlatjon Shavkatov Date: Mon, 24 Jun 2024 19:08:40 +0500 Subject: [PATCH] fix(plugins/docker): use optimized syntax for `docker` build --- plugins/docker.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/docker.sh b/plugins/docker.sh index 2d7f867..cf2302b 100644 --- a/plugins/docker.sh +++ b/plugins/docker.sh @@ -28,9 +28,7 @@ release() { prepare - docker build -t "${GIT_REPO_NAME-}:${NEXT_BUILD_VERSION-}" . --push - docker tag "${GIT_REPO_NAME}:${NEXT_BUILD_VERSION}" "${GIT_REPO_NAME}:latest" - docker push "${GIT_REPO_NAME}" + docker build -t "${GIT_REPO_NAME-}:latest" -t "${GIT_REPO_NAME}:${NEXT_BUILD_VERSION-}" . --push log "Docker image published [${NEXT_RELEASE_TAG}]!"