-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
56 lines (46 loc) · 1.4 KB
/
.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
49
50
51
52
53
54
55
56
---
include:
- remote: "https://raw.githubusercontent.com/miquido/gitlab-templates/1.3.98/terraform-toolkit.yml"
- remote: "https://raw.githubusercontent.com/miquido/gitlab-templates/1.3.98/git-toolkit.yml"
- remote: "https://raw.githubusercontent.com/miquido/gitlab-templates/1.3.98/gitlab-toolkit.yml"
- remote: "https://raw.githubusercontent.com/miquido/gitlab-templates/1.3.98/docker-toolkit.yml"
get-latest-terraform:
extends: .get-latest-terraform
check-formatting:
extends: .check-formatting
validate:
extends: .validate-terraform
variables:
ENVIRONMENTS: examples/complete
terratest:
id_tokens:
GITLAB_OIDC_TOKEN:
aud: https://gitlab.com
image: golang
before_script:
- curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
- curl https://releases.hashicorp.com/terraform/1.7.5/terraform_1.7.5_linux_amd64.zip -o terraform_1.7.5_linux_amd64.zip
- apt update
- apt install zip -y
- unzip awscliv2.zip
- unzip terraform_1.7.5_linux_amd64.zip
- mv terraform /usr/local/bin/
- ./aws/install
- !reference [ .oidc-login, script ]
script:
- cd tests
- go mod tidy
- go test my_test.go
tags:
- miquido
- docker
bump-tag:
extends: .bump_minor_tag
docs:
extends: .generate_readme
stage: .post
push_readme:
extends: .push_readme
stage: .post
dependencies: [ "docs" ]
needs: [ "docs" ]