Skip to content

Commit

Permalink
add makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
kost committed Feb 11, 2020
1 parent 3858181 commit 93a9d35
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
REPO=dok3r
NAME=ulx3s-saxonsoc
IMAGE=$(REPO)/$(NAME)
OSTYPE=$(shell uname -s | tr '[A-Z]' '[a-z]')
MACHINE=$(shell uname -m)
ARCH=$(OSTYPE)-$(MACHINE)
VERSION=$(shell date '+%Y.%m.%d')

ver:
echo $(IMAGE) version $(VERSION)

build:
docker build -t $(IMAGE):v$(VERSION) .

push:
docker push $(IMAGE):v$(VERSION)

pull:
docker pull $(IMAGE):v$(VERSION)

latest:
docker tag $(IMAGE):v$(VERSION) $(IMAGE):latest
docker push $(IMAGE):latest

gittag:
git tag v$(VERSION)
git push --tags origin master

clean:
rm -rf dist work

rel:
ghr v$(VERSION) dist/

draft:
ghr -draft v$(VERSION) dist/

0 comments on commit 93a9d35

Please sign in to comment.