Skip to content

Commit 665a4df

Browse files
committed
makefile: install target
1 parent 3b2f4ac commit 665a4df

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

Makefile

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -151,24 +151,20 @@ cli-fingerprint:
151151
find test/cli/test-fixtures/image-* -type f -exec md5sum {} + | awk '{print $1}' | sort | md5sum | tee test/cli/test-fixtures/cache.fingerprint && echo "$(CLI_CACHE_BUSTER)" >> test/cli/test-fixtures/cache.fingerprint
152152

153153
.PHONY: cli
154-
cli: $(SNAPSHOT_DIR) ## Run CLI tests
155-
chmod 755 "$(SNAPSHOT_BIN)"
156-
SYFT_BINARY_LOCATION='$(SNAPSHOT_BIN)' \
157-
go test -count=1 -v ./test/cli
158-
159-
$(SNAPSHOT_DIR): $(TEMP_DIR) ## Build snapshot release binaries and packages
154+
cli:
160155
$(call title,Building snapshot artifacts)
161-
# create a config with the dist dir overridden
162156
echo "dist: $(SNAPSHOT_DIR)" > $(TEMP_DIR)/goreleaser.yaml
163157
cat .goreleaser.yaml >> $(TEMP_DIR)/goreleaser.yaml
164-
165158
$(SNAPSHOT_CMD) --config $(TEMP_DIR)/goreleaser.yaml
166159

167-
168160
.PHONY: install-snapshot
169161
install-snapshot:
170162
cp $(SNAPSHOT_BIN) ~/.docker/cli-plugins/
171163

164+
.PHONY: install
165+
install: cli
166+
cp $(SNAPSHOT_BIN) ~/.docker/cli-plugins/
167+
172168
.PHONY: changelog
173169
changelog: clean-changelog CHANGELOG.md
174170
@docker run -it --rm \

0 commit comments

Comments
 (0)