diff --git a/main.mk b/main.mk index a61d0c8..57ed59c 100644 --- a/main.mk +++ b/main.mk @@ -30,8 +30,8 @@ endef define release_image docker tag $(IMAGE_REPO)/$1:$(IMAGE_VERSION) $(IMAGE_REPO)/$1:$(IMAGE_VERSION)-$(COMMIT_ID) ; \ docker tag $(IMAGE_REPO)/$1:$(IMAGE_VERSION) $(IMAGE_REPO)/$1:$(IMAGE_VERSION); \ - docker tag $(IMAGE_REPO)/$1:$(IMAGE_VERSION) $(IMAGE_REPO)/$1:latest ; \ - docker push $(IMAGE_REPO)/$1:latest ; \ + docker tag $(IMAGE_REPO)/$1:$(IMAGE_VERSION) $(IMAGE_REPO)/$1:$(IMAGE_VERSION)-latest; \ + docker push $(IMAGE_REPO)/$1:$(IMAGE_VERSION)-latest ; \ docker push $(IMAGE_REPO)/$1:$(IMAGE_VERSION) ; \ docker push $(IMAGE_REPO)/$1:$(IMAGE_VERSION)-$(COMMIT_ID) endef