-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
125 lines (106 loc) · 3.74 KB
/
Makefile
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
ORG ?= Sabayon
OVERLAY ?= sabayon-distro
CLI ?= mottainai-cli
.PHONY: all
all: help
.PHONY: help
help:
@echo "====================================================================="
@echo " Sabayon Infra Tasks"
@echo "====================================================================="
@echo "docker-mottainai Create tasks for build Mottainai Docker images."
@echo "validate Run replicant validation."
@echo "deploy Run replicant ensure."
@echo "webhooks Update Mottainai WebHooks."
@echo "kernel-tracker Create task for Kernel bumps."
@echo "tasks Create all tasks YAML files (from templates)."
@echo "mottainai-ebuild-tag Create Mottainai ebuild tags from develop."
@echo "bump-atom Bump atom to our overlay. Default sabayon-distro."
@echo "tag-server TBD"
@echo "repo-remove-pkgs Create task for remove packages from a specific"
@echo " repository. (Only ARM for now)."
@echo "repo-create-pkgs Create task for force compilation of the packages"
@echo " related to a specific stage and repo."
@echo " (Only ARM for now)."
@echo "scr-tasks Create all tasks YAML files (from templates) for "
@echo " SCR repos."
@echo "scr-mirrors-sync Sync SCR mirrors files."
@echo "repo-compare-pkgs Compare pkgs of repository with build files definition."
@echo "repo-compare-bins Compare pkgs under binhost directory with build files"
@echo " definition."
.PHONY: repo-compare-pkgs
repo-compare-pkgs:
@echo "Missing packages:"
@make/repo-compare -m
.PHONY: repo-compare-bins
repo-compare-bins:
@echo "Missing targets:"
@make/repo-compare -t
.PHONY: scr-tasks
scr-tasks:
@make/scr-tasks
.PHONY: scr-mirrors-sync
scr-mirrors-sync:
@make/scr-mirrors-sync
.PHONY: repo-create-pkgs
repo-create-pkgs:
@make/repo-create-pkgs
.PHONY: repo-remove-pkgs
repo-remove-pkgs:
@make/repo-remove-pkgs.sh
.PHONY: docker-mottainai
docker-mottainai:
make/docker-mottainai
.PHONY: validate
validate:
make/validate
.PHONY: clean-nodes
clean-nodes:
make/clean-nodes
.PHONY: deploy
deploy:
make/deploy
.PHONY: webhooks
webhooks:
make/webhooks
.PHONY: kernel-tracker
kernel-tracker:
make/kernel-tracker
.PHONY: tasks
tasks:
make/tasks
.PHONY: mottainai-ebuild-tag
mottainai-ebuild-tag:
$(CLI) task create --yaml bots/mottainai/overlay-devel-tag.yaml
.PHONY: bump-atom
bump-atom:
# TARGET sys-devel/gcc/gcc-8.2.0-r6.ebuild
# TARGETVERSION 8.2.0-r6
# ATOM sys-devel/gcc
# SOURCE sys-devel/gcc/gcc-7.3.0-r3.ebuild
$(CLI) task compile bots/ebuild-maint/maint-fork.tmpl \
-s OverlayName=$(OVERLAY) \
-s UpstreamOrg=$(ORG) \
-s SourceEbuild=$(SOURCE) \
-s TargetEbuild=$(TARGET) \
-s Version=$(TARGETVERSION) \
-s Atom=$(ATOM) \
-o ..task.yaml
$(CLI) task create --yaml ..task.yaml
rm -rf ..task.yaml
.PHONY: tag-server
tag-server:
$(CLI) task compile bots/mottainai/release.tmpl \
-s OverlayName=$(OVERLAY) \
-s UpstreamOrg=$(ORG) \
-s Version=0.1 \
-s Component=mottainai-server \
-s TargetTag=master \
-o ..task.yaml
$(CLI) task create --yaml ..task.yaml
rm -rf ..task.yaml
.PHONY: autobump
autobump:
$(CLI) task create --yaml bots/luet/luet-official-repo-autobump.yaml
$(CLI) task create --yaml bots/mocaccino/micro-autobump.yaml
$(CLI) task create --yaml bots/mocaccino/extra-autobump.yaml