Skip to content

Commit

Permalink
Fix version passing to docker image.
Browse files Browse the repository at this point in the history
  • Loading branch information
roquie committed May 15, 2020
1 parent 33780d8 commit a4bd2e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ VERSION = latest
FILE = Dockerfile

image:
sed "s/{{ version }}/$(VERSION)/g" $(FILE)
docker build -f $(FILE) -t $(IMAGE):$(VERSION) .
sed "s/{{ version }}/$(VERSION)/g" $(FILE) > /tmp/$(FILE)
docker build -f /tmp/$(FILE) -t $(IMAGE):$(VERSION) .

push:
docker push $(IMAGE):$(VERSION)
Expand Down

0 comments on commit a4bd2e2

Please sign in to comment.