summaryrefslogtreecommitdiff
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
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>
-rw-r--r--.github/actions/spelling/allow.txt2
-rw-r--r--Makefile7
2 files changed, 9 insertions, 0 deletions
diff --git a/.github/actions/spelling/allow.txt b/.github/actions/spelling/allow.txt
index 04aca1b..051b4f7 100644
--- a/.github/actions/spelling/allow.txt
+++ b/.github/actions/spelling/allow.txt
@@ -1,4 +1,5 @@
aic
+amd
anyfield
api
apiclient
@@ -115,6 +116,7 @@ ldflags
LDFLAGS
len
linted
+linux
logctx
logf
Logf
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