-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (29 loc) · 698 Bytes
/
Makefile
File metadata and controls
39 lines (29 loc) · 698 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
IMAGE := codejamninja/stash-cli
VERSION := 0.0.1
MAJOR := $(shell echo $(VERSION) | cut -d. -f1)
MINOR := $(shell echo $(VERSION) | cut -d. -f2)
PATCH := $(shell echo $(VERSION) | cut -d. -f3)
.EXPORT_ALL_VARIABLES:
.PHONY: all
all: clean build
.PHONY: build
build:
@docker-compose -f docker-build.yaml build
.PHONY: pull
pull:
@docker-compose -f docker-build.yaml pull
.PHONY: push
push:
@docker-compose -f docker-build.yaml push
.PHONY: run
run: build
@docker run --rm -p 8080:8080 $(IMAGE):latest
.PHONY: start
start: build
@docker run --rm $(IMAGE):latest
.PHONY: ssh
ssh: build
@docker run --rm -it --entrypoint /bin/sh $(IMAGE):latest
.PHONY: up
up: build
@docker-compose up