Skip to content

Commit

Permalink
Create docker and docker-push targets
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Linz committed Jun 13, 2018
1 parent 5194816 commit d155b6e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: clean test clean-all
.PHONY: clean test clean-all docker

META_PACKAGE_IMPORT_PATH := $(shell vgo list -f '{{ .ImportPath }}' ./meta)
GO_SOURCES :=$(shell vgo list -f '{{ range $$element := .GoFiles }}{{ $$.Dir }}/{{ $$element }}{{ "\n" }}{{ end }}' ./...)
Expand Down Expand Up @@ -36,6 +36,13 @@ deb: f3 test
--no-deb-systemd-restart-after-upgrade\
--chdir deb

docker: Dockerfile f3
docker build -t spreadshirt/f3:$(VERSION) .

docker-push: docker
docker login docker.io
docker push spreadshirt/f3:$(VERSION)

clean:
rm -f f3

Expand Down

0 comments on commit d155b6e

Please sign in to comment.