Skip to content

Commit

Permalink
docker: build version-tagged and latest separately
Browse files Browse the repository at this point in the history
Pretty sure this is still not the right tactic; I think really I want to
build it without a version tag at all, call that `latest`, then tag it
and push both.

But I'm still running all of this manually anyhow, so might as well
tinker meanwhile.
  • Loading branch information
pd committed May 23, 2016
1 parent 34e351e commit 607f692
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Expand Up @@ -12,7 +12,8 @@ linux: srvaddr_linux_amd64
osx: srvaddr_darwin_amd64

docker: srvaddr_linux_amd64
docker build --rm --tag "philodespotos/srvaddr:$(VERSION)" --tag philodespotos/srvaddr:latest .
docker build --rm --tag "philodespotos/srvaddr:$(VERSION)" .
docker build --rm --tag "philodespotos/srvaddr:latest" .

clean:
rm -f srvaddr srvaddr_darwin_amd64 srvaddr_linux_amd64

0 comments on commit 607f692

Please sign in to comment.