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

Commit

Permalink
Merge pull request #8 from sillydong/master
Browse files Browse the repository at this point in the history
upgrade Makefile
  • Loading branch information
danesparza authored Jan 17, 2019
2 parents 3d3c286 + 11ca9b7 commit 84bd141
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 84bd141

Please sign in to comment.