-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
17 lines (14 loc) · 867 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
IMGNAME = geth-exporter-rust
VERSION = $(shell grep '^version' Cargo.toml | sed -e 's/version = \"\(.*\)\"/\1/')
build:
docker build . -t $(IMGNAME):latest
publish:
docker tag $(IMGNAME):latest docker.pkg.github.com/ksato9700/geth-exporter-rust/$(IMGNAME):latest
docker tag $(IMGNAME):latest docker.pkg.github.com/ksato9700/geth-exporter-rust/$(IMGNAME):$(VERSION)
docker push docker.pkg.github.com/ksato9700/geth-exporter-rust/$(IMGNAME):latest
docker push docker.pkg.github.com/ksato9700/geth-exporter-rust/$(IMGNAME):$(VERSION)
publish-ghcr:
docker tag $(IMGNAME):latest ghcr.io/ksato9700/geth-exporter-rust/$(IMGNAME):latest
docker tag $(IMGNAME):latest ghcr.io/ksato9700/geth-exporter-rust/$(IMGNAME):$(VERSION)
docker push ghcr.io/ksato9700/geth-exporter-rust/$(IMGNAME):latest
docker push ghcr.io/ksato9700/geth-exporter-rust/$(IMGNAME):$(VERSION)