Skip to content

Commit

Permalink
chore: make it easier to update deps.png
Browse files Browse the repository at this point in the history
Does not update deps.png itself.

Signed-off-by: Alexey Palazhchenko <alexey.palazhchenko@gmail.com>
  • Loading branch information
AlekSi authored and talos-bot committed Feb 16, 2021
1 parent e54841a commit ca12352
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ TAG ?= $(shell git describe --tag --always --dirty)
BRANCH ?= $(shell git rev-parse --abbrev-ref HEAD)
REGISTRY_AND_USERNAME := $(REGISTRY)/$(USERNAME)

# Sync bldr image with Pkgfile
BLDR ?= docker run --rm --volume $(PWD):/tools --entrypoint=/bldr \
ghcr.io/talos-systems/bldr:v0.2.0-alpha.3-frontend graph --root=/tools

BUILD := docker buildx build
PLATFORM ?= linux/amd64,linux/arm64
PROGRESS ?= auto
Expand All @@ -13,7 +17,7 @@ COMMON_ARGS := --file=Pkgfile
COMMON_ARGS += --progress=$(PROGRESS)
COMMON_ARGS += --platform=$(PLATFORM)

TARGETS = tools
TARGETS = tools

all: $(TARGETS) ## Builds all known pkgs.

Expand All @@ -36,4 +40,4 @@ $(TARGETS):

.PHONY: deps.png
deps.png:
bldr graph | dot -Tpng > deps.png
$(BLDR) graph | dot -Tpng > deps.png
2 changes: 2 additions & 0 deletions Pkgfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# syntax = ghcr.io/talos-systems/bldr:v0.2.0-alpha.3-frontend

# Sync bldr image with Makefile

format: v1alpha2

vars:
Expand Down

0 comments on commit ca12352

Please sign in to comment.