-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (22 loc) · 688 Bytes
/
Makefile
File metadata and controls
28 lines (22 loc) · 688 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
## Variables
REGISTRY := registry.fallow.app
IMAGE := mooz
PLATFORM := linux/arm64
DOCKER_TAG := $(shell cat version.txt)
PLATFORM_TAG := arm
.PHONY: build
phone:
@echo "Building Docker Image: $(IMAGE):$(DOCKER_TAG)-$(PLATFORM_TAG)..."
docker buildx build --platform $(PLATFORM) -t $(REGISTRY)/$(IMAGE):$(DOCKER_TAG)-$(PLATFORM_TAG) .
.PHONY: push
push:
@echo "Pushing Docker Image: $(IMAGE):$(DOCKER_TAG)-$(PLATFORM_TAG)..."
docker push $(REGISTRY)/$(IMAGE):$(DOCKER_TAG)-$(PLATFORM_TAG)
.PHONY: docker-run
docker-run:
docker run -it --rm $(REGISTRY)/$(IMAGE):$(DOCKER_TAG)-$(PLATFORM_TAG)
.PHONY: dev-server
dev-server:
go run ./cmd/web
.PHONY: release
release: build push