-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
58 lines (52 loc) · 838 Bytes
/
.gitlab-ci.yml
File metadata and controls
58 lines (52 loc) · 838 Bytes
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
stages:
- register
- test
- release
- unregister
.imgjob:
image: docker:stable
services:
- docker:stable-dind
variables:
DOCKER_DRIVER: overlay2
tags:
- docker
- arm
before_script:
- mkdir utils
- apk add --no-cache make bash
.runner:
image:
name: hashicorp/terraform:0.14.9
entrypoint: [""]
before_script:
- cd ci/runner
- terraform init
register:
extends: .runner
stage: register
script:
- terraform apply -auto-approve
test:
extends: .imgjob
stage: test
only:
- branches
except:
- master
script:
- make build
allow_failure: true
gitlab:
extends: .imgjob
stage: release
only:
- master
script:
- make all
unregister:
extends: .runner
stage: unregister
script:
- terraform destroy -auto-approve
when: always