Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
upgrade Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen.Zhidong committed Jan 17, 2019
1 parent 3d3c286 commit 11ca9b7
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
all: buildd publish
BUILDVERSION=$(shell git describe --tags --always)

all: buildd docker

buildd:
yarn build

publish:
docker build -t influxdb-ui:latest .
docker: buildd
docker build -t influxdb-ui:$(BUILDVERSION) .

publish: buildd docker
docker tag influxdb-ui:$(BUILDVERSION) sillydong/influxdb-ui:$(BUILDVERSION)
docker tag influxdb-ui:$(BUILDVERSION) sillydong/influxdb-ui:latest
docker push sillydong/influxdb-ui:$(BUILDVERSION)
docker push sillydong/influxdb-ui:latest

0 comments on commit 11ca9b7

Please sign in to comment.