-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (33 loc) · 782 Bytes
/
Makefile
File metadata and controls
40 lines (33 loc) · 782 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
40
export MAINTAINER:=ulm0
export NAME:=gitlab
export IMAGE:=$(MAINTAINER)/$(NAME)
export CE_VERSION:=$(shell ./ci/version)
export CE_TAG:=$(CE_VERSION)
export ARCHS:=ARMv6 or later
# ifeq ($(CI_COMMIT_REF_NAME), "master")
# export CE_TAG=$(CE_VERSION)
# endif
all: version build push
help:
# General commands:
# make all => build push
# make version - show information about the current version
#
# Commands
# make build - build the GitLab image
# make push - push the image to Docker Hub
version: FORCE
@echo "---"
@echo Version: $(CE_VERSION)
@echo Image: $(IMAGE):$(CE_TAG)
@echo Platorms: $(ARCHS)
@echo ""
@echo Brought to you by ulm0
@echo "---"
build: version
# Build the GitLab image
@./ci/build
push:
# Push image to Registries
@./ci/release
FORCE: