-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
92 lines (90 loc) · 1.75 KB
/
.drone.yml
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
---
kind: pipeline
type: kubernetes
name: default
environment:
URL: https://stable.release.flatcar-linux.net/amd64-usr
VER: 2512.2.0
IMAGE: flatcar_production_openstack_image.img
IMAGE_Z: flatcar_production_openstack_image.img.bz2
steps:
- name: downloader
image: einfachnuralex/downloader:v0.5
commands:
- wget -q $URL/$VER/$IMAGE_Z
- wget -q $URL/$VER/$IMAGE_Z.DIGESTS
- name: checker
image: einfachnuralex/downloader:v0.5
commands:
- sha512sum -c $IMAGE_Z.DIGESTS
- name: extractor
image: einfachnuralex/downloader:v0.5
commands:
- bzip2 -df $IMAGE_Z
- ls -la
- name: uploader
image: einfachnuralex/downloader:v0.5
commands:
- openstack image create coreos-$VER-test --disk-format=qcow2 --file $IMAGE --public --property os_distro='coreos' --property os_type='linux'
- echo done
environment:
OS_AUTH_URL:
from_secret: authurl
OS_PROJECT_ID:
from_secret: projectid
OS_PROJECT_NAME:
from_secret: projectname
OS_USER_DOMAIN_NAME:
from_secret: domain
OS_PROJECT_DOMAIN_ID:
from_secret: domain
OS_USERNAME:
from_secret: username
OS_PASSWORD:
from_secret: password
OS_REGION_NAME:
from_secret: region
OS_INTERFACE: public
OS_IDENTITY_API_VERSION: 3
---
kind: secret
name: username
get:
path: credentials
name: username
---
kind: secret
name: password
get:
path: credentials
name: password
---
kind: secret
name: projectname
get:
path: credentials
name: projectname
---
kind: secret
name: projectid
get:
path: credentials
name: projectid
---
kind: secret
name: authurl
get:
path: credentials
name: authurl
---
kind: secret
name: domain
get:
path: credentials
name: domain
---
kind: secret
name: region
get:
path: credentials
name: region