diff options
| author | jannfis <jann@mistrust.net> | 2021-08-14 15:30:09 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-14 15:30:09 +0200 |
| commit | ea7b3238a8b69d23c428fcc5730054bbf1f3e4a0 (patch) | |
| tree | 7c02dac5d3d0235c575a927dbb0bbcc0cc3df72b | |
| parent | c715b686125d6b3a348d97c8ac2c69a8ee616a54 (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.txt | 2 | ||||
| -rw-r--r-- | Makefile | 7 |
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 @@ -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 |
