From d155b6e40b6c202b68e286b0d4aba4281281f703 Mon Sep 17 00:00:00 2001 From: Andreas Linz Date: Wed, 13 Jun 2018 17:58:15 +0200 Subject: [PATCH] Create docker and docker-push targets --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 14f8478..1af7139 100644 --- a/Makefile +++ b/Makefile @@ -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 }}' ./...) @@ -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