-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
48 lines (41 loc) · 872 Bytes
/
.gitlab-ci.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
# This file is a template, and might need editing before it works on your project.
# Official docker image.
image: registry.gitlab.com/qm64/packer/toolchain:latest
stages:
- validate
- apply
- post-apply
all:validate:
stage: validate
script:
- make -C packer validate
- make -C configuration validate
- make -C infrastructure validate
infrastructure:apply:
stage: apply
script:
- make -C infrastructure apply
only:
- master
packer:build:
stage: apply
script:
- make -C packer build
when: manual
vault:renew:
stage: validate
script:
- vault token renew -increment=360h > /dev/null
only:
- master
- schedules
vault:manual_renew:
stage: post-apply
script:
- vault token renew -increment=360h > /dev/null
when: manual
vault:panic:
stage: post-apply
script:
- make panic
when: manual