File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed
Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change 1- WORKDIR =$(PWD )
2- #
31# Anchor version.
4- #
52ANCHOR_CLI =v0.31.0
6- #
73# Solana toolchain.
8- #
94SOLANA_CLI =v2.1.0
10- #
115# Build version should match the Anchor cli version.
12- #
13- IMG_ORG ?= backpackapp
14- IMG_VER ?= $(ANCHOR_CLI )
6+ VERSIONED_IMG_NAME =solanafoundation/anchor:$(ANCHOR_CLI )
157
168.PHONY : build build-push build-shell publish
179
@@ -21,14 +13,14 @@ build: build/Dockerfile
2113 @docker build \
2214 --build-arg ANCHOR_CLI=$(ANCHOR_CLI ) \
2315 --build-arg SOLANA_CLI=$(SOLANA_CLI ) \
24- $@ -t $(IMG_ORG ) / $@ : $( IMG_VER )
16+ $@ -t $(VERSIONED_IMG_NAME )
2517
2618build-push :
27- @docker push $(IMG_ORG ) /build: $( IMG_VER )
19+ @docker push $(VERSIONED_IMG_NAME )
2820
2921build-shell :
3022 @docker run -ti --rm --net=host \
3123 -v $(WORKDIR ) /..:/workdir \
32- $(IMG_ORG ) /build: $( IMG_VER ) bash
24+ $(VERSIONED_IMG_NAME ) bash
3325
3426publish : build build-push
You can’t perform that action at this time.
0 commit comments