summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorjannfis <jann@mistrust.net>2021-08-14 15:30:09 +0200
committerGitHub <noreply@github.com>2021-08-14 15:30:09 +0200
commitea7b3238a8b69d23c428fcc5730054bbf1f3e4a0 (patch)
tree7c02dac5d3d0235c575a927dbb0bbcc0cc3df72b /Makefile
parentc715b686125d6b3a348d97c8ac2c69a8ee616a54 (diff)
chore: New extract-binary target for easy extraction of binary (#234)
* chore: New extract-binary target for easy extraction of binary Signed-off-by: jannfis <jann@mistrust.net> * chore: New extract-binary target for easy extraction of binary Signed-off-by: jannfis <jann@mistrust.net>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 588afcd..da8768d 100644
--- a/Makefile
+++ b/Makefile
@@ -67,6 +67,13 @@ image: clean-image mod-vendor
image-push: image
docker push ${IMAGE_PREFIX}${IMAGE_NAME}:${IMAGE_TAG}
+.PHONY: extract-binary
+extract-binary:
+ docker rm argocd-image-updater-${IMAGE_TAG} || true
+ docker create --name argocd-image-updater-${IMAGE_TAG} ${IMAGE_PREFIX}${IMAGE_NAME}:${IMAGE_TAG}
+ docker cp argocd-image-updater-${IMAGE_TAG}:/usr/local/bin/argocd-image-updater /tmp/argocd-image-updater_${IMAGE_TAG}_linux-amd64
+ docker rm argocd-image-updater-${IMAGE_TAG}
+
.PHONY: lint
lint:
golangci-lint run