forked from SUSE/bosh-linux-stemcell-builder-ci
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
113 lines (97 loc) · 4.24 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
TARGET ?= suse.de
CONCOURSE_SECRETS_FILE ?= ../cloudfoundry/secure/concourse-secrets.yml.gpg
TERRAFORM_DATA_DIR ?= ../cloudfoundry/engcloud.prv.suse.net/terraform
NON_INTERACTIVE ?=
all: release develop regression
release: release-os-images release-stemcells release-fissile release-sles
release-os-images:
bash -c "fly -t ${TARGET} set-pipeline ${NON_INTERACTIVE} \
-c release/os-images.yml \
-p bosh:release:os-images \
-l shared_vars.yml \
-l release/vars.yml \
-l <(gpg --decrypt --batch --no-tty ${CONCOURSE_SECRETS_FILE} 2> /dev/null)"
fly -t ${TARGET} unpause-pipeline -p bosh:release:os-images
fly -t ${TARGET} expose-pipeline -p bosh:release:os-images
release-stemcells:
bash -c "fly -t ${TARGET} set-pipeline ${NON_INTERACTIVE} \
-c release/stemcells.yml \
-p bosh:release:stemcells \
-l shared_vars.yml \
-l release/vars.yml \
-l ${TERRAFORM_DATA_DIR}/vars.yml \
-l <(gpg --decrypt --batch --no-tty ${CONCOURSE_SECRETS_FILE} 2> /dev/null) \
-v openstack-private-key-data=\"`gpg --decrypt --batch --no-tty ${TERRAFORM_DATA_DIR}/bosh.pem.gpg 2> /dev/null`\""
fly -t ${TARGET} unpause-pipeline -p bosh:release:stemcells
fly -t ${TARGET} expose-pipeline -p bosh:release:stemcells
release-fissile:
bash -c "fly -t ${TARGET} set-pipeline ${NON_INTERACTIVE} \
-c fissile/pipeline.yml \
-p fissile:release \
-l shared_vars.yml \
-l release/vars.yml \
-l fissile/release_vars.yml \
-l <(gpg --decrypt --batch --no-tty ${CONCOURSE_SECRETS_FILE} 2> /dev/null)"
fly -t ${TARGET} unpause-pipeline -p fissile:release
fly -t ${TARGET} expose-pipeline -p fissile:release
develop: develop-os-images develop-stemcells develop-fissile
develop-os-images:
bash -c "fly -t ${TARGET} set-pipeline ${NON_INTERACTIVE} \
-c develop/os-images.yml \
-p bosh:develop:os-images \
-l shared_vars.yml \
-l develop/vars.yml \
-l <(gpg --decrypt --batch --no-tty ${CONCOURSE_SECRETS_FILE} 2> /dev/null)"
fly -t ${TARGET} unpause-pipeline -p bosh:develop:os-images
fly -t ${TARGET} expose-pipeline -p bosh:develop:os-images
develop-stemcells:
bash -c "fly -t ${TARGET} set-pipeline ${NON_INTERACTIVE} \
-c develop/stemcells.yml \
-p bosh:develop:stemcells \
-l shared_vars.yml \
-l develop/vars.yml \
-l ${TERRAFORM_DATA_DIR}/vars.yml \
-l <(gpg --decrypt --batch --no-tty ${CONCOURSE_SECRETS_FILE} 2> /dev/null) \
-v openstack-private-key-data=\"`gpg --decrypt --batch --no-tty ${TERRAFORM_DATA_DIR}/bosh.pem.gpg 2> /dev/null`\""
fly -t ${TARGET} unpause-pipeline -p bosh:develop:stemcells
fly -t ${TARGET} expose-pipeline -p bosh:develop:stemcells
develop-fissile:
bash -c "fly -t ${TARGET} set-pipeline ${NON_INTERACTIVE} \
-c fissile/pipeline.yml \
-p fissile:develop \
-l shared_vars.yml \
-l develop/vars.yml \
-l fissile/develop_vars.yml \
-l <(gpg --decrypt --batch --no-tty ${CONCOURSE_SECRETS_FILE} 2> /dev/null)"
fly -t ${TARGET} unpause-pipeline -p fissile:develop
fly -t ${TARGET} expose-pipeline -p fissile:develop
regression: regression-os-images regression-stemcells
regression-os-images:
bash -c "fly -t ${TARGET} set-pipeline ${NON_INTERACTIVE} \
-c regression/os-images.yml \
-p bosh:regression:os-images \
-l shared_vars.yml \
-l regression/vars.yml \
-l <(gpg --decrypt --batch --no-tty ${CONCOURSE_SECRETS_FILE} 2> /dev/null)"
#fly -t ${TARGET} unpause-pipeline -p bosh:regression:os-images
fly -t ${TARGET} expose-pipeline -p bosh:regression:os-images
regression-stemcells:
bash -c "fly -t ${TARGET} set-pipeline ${NON_INTERACTIVE} \
-c regression/stemcells.yml \
-p bosh:regression:stemcells \
-l shared_vars.yml \
-l regression/vars.yml \
-l ${TERRAFORM_DATA_DIR}/vars.yml \
-l <(gpg --decrypt --batch --no-tty ${CONCOURSE_SECRETS_FILE} 2> /dev/null) \
-v openstack-private-key-data=\"`gpg --decrypt --batch --no-tty ${TERRAFORM_DATA_DIR}/bosh.pem.gpg 2> /dev/null`\""
#fly -t ${TARGET} unpause-pipeline -p bosh:regression:stemcells
fly -t ${TARGET} expose-pipeline -p bosh:regression:stemcells
release-sles: release-sles-os-images release-sles-stemcell release-sles-aws
release-sles-os-images:
cd sles-os-images && ./configure.sh
release-sles-stemcell:
cd sles-stemcell && ./configure.sh
release-sles-aws: TARGET ?= sles
release-sles-aws:
fly -t ${TARGET} login -k
cd sles-aws && ./configure.sh