-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (21 loc) · 692 Bytes
/
Makefile
File metadata and controls
29 lines (21 loc) · 692 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
# This goes to my docker hub account; change it if you want to
# push to your own account.
IMAGE_NAME := dperique/termi-chat
VERSION := $(shell cat VERSION)
ENGINE := podman # Default to docker, change to podman if needed
.PHONY: build push all
# Default target
all: build push
build:
@echo "Building Docker image with version $(VERSION) using $(ENGINE)"
@$(ENGINE) build -t $(IMAGE_NAME):$(VERSION) .
push:
@echo "Pushing Docker image with version $(VERSION) using $(ENGINE)"
@$(ENGINE) push $(IMAGE_NAME):$(VERSION)
# targets for Docker and Podman engines
use-docker:
@$(eval ENGINE := docker)
@echo "Using Docker"
use-podman:
@$(eval ENGINE := podman)
@echo "Using Podman"