Explorar o código

docs, docker: Update cli version and add publish command

armaniferrante %!s(int64=4) %!d(string=hai) anos
pai
achega
e7f6d637f4
Modificáronse 2 ficheiros con 5 adicións e 3 borrados
  1. 4 2
      docker/Makefile
  2. 1 1
      docs/src/getting-started/installation.md

+ 4 - 2
docker/Makefile

@@ -13,7 +13,7 @@ SOLANA_CLI=v1.6.3
 IMG_ORG ?= projectserum
 IMG_VER ?= $(ANCHOR_CLI)
 
-.PHONY: build build-push build-shell
+.PHONY: build build-push build-shell publish
 
 default:
 
@@ -24,9 +24,11 @@ build: build/Dockerfile
 	$@ -t $(IMG_ORG)/$@:$(IMG_VER)
 
 build-push:
-	@docker push $(IMG_ORG)/anchorbuild:$(IMG_VER)
+	@docker push $(IMG_ORG)/build:$(IMG_VER)
 
 build-shell:
 	@docker run -ti --rm --net=host \
 		-v $(WORKDIR)/..:/workdir \
 		$(IMG_ORG)/build:$(IMG_VER) bash
+
+publish: build build-push

+ 1 - 1
docs/src/getting-started/installation.md

@@ -34,7 +34,7 @@ npm install -g mocha
 For now, we can use Cargo to install the CLI.
 
 ```bash
-cargo install --git https://github.com/project-serum/anchor --tag v0.4.0 anchor-cli --locked
+cargo install --git https://github.com/project-serum/anchor --tag v0.4.1 anchor-cli --locked
 ```
 
 On Linux systems you may need to install additional dependencies if `cargo install` fails. On Ubuntu,