forked from crdant/online-boutique-replicated
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
110 lines (89 loc) · 5.97 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
PROJECT_DIR := $(shell pwd)
PROJECT_PARAMS := secrets/params.yaml
CHANNEL := $(shell git branch --show-current)
MANIFEST_DIR := $(PROJECT_DIR)/manifests
MANIFESTS := $(shell find $(MANIFEST_DIR) -name '*.yaml' -o -name '*.tgz')
app:
@replicated app create online-boutique
lint: $(MANIFESTS)
@replicated release lint --yaml-dir $(MANIFEST_DIR)
release: $(MANIFESTS)
ifndef RELEASE_NOTES
$(error RELEASE_NOTES not provided)
endif
ifndef VERSION
$(error VERSION not provided)
endif
@replicated release create \
--app ${REPLICATED_APP} \
--token ${REPLICATED_API_TOKEN} \
--version $(VERSION) \
--release-notes "$(RELEASE_NOTES)" \
--yaml-dir $(MANIFEST_DIR) \
--ensure-channel \
--promote $(CHANNEL)
install:
@kubectl kots install ${REPLICATED_APP}/$(CHANNEL)
beta:
@fly --target boutique trigger-job --job release/promote-beta
edge:
@fly --target boutique trigger-job --job release/promote-edge
stable:
@fly --target boutique trigger-job --job release/promote-stable
services: adservice cartservice checkoutservice currencyservice emailservice frontend paymentservice productcatalogservice recommendationservice shippingservice
adservice:
@fly --target boutique trigger-job --job adservice/build
cartservice:
@fly --target boutique trigger-job --job cartservice/build
checkoutservice:
@fly --target boutique trigger-job --job checkoutservice/build
currencyservice:
@fly --target boutique trigger-job --job currencyservice/build
emailservice:
@fly --target boutique trigger-job --job emailservice/build
frontend:
@fly --target boutique trigger-job --job frontend/build
paymentservice:
@fly --target boutique trigger-job --job paymentservice/build
productcatalogservice:
@fly --target boutique trigger-job --job productcatalogservice/build
recommendationservice:
@fly --target boutique trigger-job --job recommendationservice/build
shippingservice:
@fly --target boutique trigger-job --job shippingservice/build
pipelines:
@fly --target boutique set-pipeline --pipeline adservice --config ci/concourse/adservice/pipeline.yaml --non-interactive && fly -t boutique unpause-pipeline --pipeline adservice
@fly --target boutique set-pipeline --pipeline cartservice --config ci/concourse/cartservice/pipeline.yaml --non-interactive && fly -t boutique unpause-pipeline --pipeline cartservice
@fly --target boutique set-pipeline --pipeline checkoutservice --config ci/concourse/checkoutservice/pipeline.yaml --non-interactive && fly -t boutique unpause-pipeline --pipeline checkoutservice
@fly --target boutique set-pipeline --pipeline currencyservice --config ci/concourse/currencyservice/pipeline.yaml --non-interactive && fly -t boutique unpause-pipeline --pipeline currencyservice
@fly --target boutique set-pipeline --pipeline emailservice --config ci/concourse/emailservice/pipeline.yaml --non-interactive && fly -t boutique unpause-pipeline --pipeline emailservice
@fly --target boutique set-pipeline --pipeline frontend --config ci/concourse/frontend/pipeline.yaml --non-interactive && fly -t boutique unpause-pipeline --pipeline frontend
@fly --target boutique set-pipeline --pipeline paymentservice --config ci/concourse/paymentservice/pipeline.yaml --non-interactive && fly -t boutique unpause-pipeline --pipeline paymentservice
@fly --target boutique set-pipeline --pipeline productcatalogservice --config ci/concourse/productcatalogservice/pipeline.yaml --non-interactive && fly -t boutique unpause-pipeline --pipeline productcatalogservice
@fly --target boutique set-pipeline --pipeline recommendationservice --config ci/concourse/recommendationservice/pipeline.yaml --non-interactive && fly -t boutique unpause-pipeline --pipeline recommendationservice
@fly --target boutique set-pipeline --pipeline shippingservice --config ci/concourse/shippingservice/pipeline.yaml --non-interactive && fly -t boutique unpause-pipeline --pipeline shippingservice
customers:
@replicated customer create --channel Stable --expires-in 730h --name Klein-Stehr
@replicated customer create --channel Stable --expires-in 17530h --name "Purdy Inc."
@replicated customer create --channel Stable --snapshot --expires-in 8766h --name Treutel
@replicated customer create --channel Stable --snapshot --expires-in 17530h --name "Casper Group"
@replicated customer create --channel Beta --snapshot --expires-in 8766h --name Will-Kautzer
@replicated customer create --channel Stable --snapshot --name Sipes-Erdman
@replicated customer create --channel Stable --snapshot --expires-in 730h --name "Little and Sons"
@replicated customer create --channel Stable --snapshot --expires-in 26300h --name "Ferry Group"
@replicated customer create --channel Stable --snapshot --expires-in 2160h --name Bergstrom
@replicated customer create --channel Beta --snapshot --expires-in 8766h --name "Schamberger, LLC"
@replicated customer create --channel Stable --snapshot --expires-in 8766h --name Trantow-Carroll
@replicated customer create --channel Stable --snapshot --expires-in 8766h --name "Swaniawski, Inc."
@replicated customer create --channel Stable --snapshot --expires-in 8766h --name "Silver Fir"
@replicated customer create --channel Stable --snapshot --expires-in 8766h --name Trueyx
@replicated customer create --channel Stable --snapshot --expires-in 8766h --name Schowalter
@replicated customer create --channel $(CHANNEL) --expires-in 26300h --name Halvorsen
@replicated customer create --channel Beta --snapshot --expires-in 730h --name Spinka
@replicated customer create --channel Beta --snapshot --expires-in 17530h --name Stehr
@replicated customer create --channel $(CHANNEL) --expires-in 8766h --name Nienow
@replicated customer create --channel Beta --expires-in 17530h --name Quitzon-Greenholt
@replicated customer create --channel Stable --snapshot --expires-in 8766h --name Emmerich
@replicated customer create --channel Stable --snapshot --name Gulgow
@replicated customer create --channel Beta --expires-in 730h --name Vandervort
@replicated customer create --channel Stable --snapshot --expires-in 26300h --name Langworth