-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
70 lines (61 loc) · 1.55 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---
include:
- remote: "https://raw.githubusercontent.com/miquido/gitlab-templates/1.3.78/terraform-toolkit.yml"
- remote: "https://raw.githubusercontent.com/miquido/gitlab-templates/1.3.78/git-toolkit.yml"
- remote: "https://raw.githubusercontent.com/miquido/gitlab-templates/1.3.78/gitlab-toolkit.yml"
get-latest-terraform:
extends: .get-latest-terraform
check-formatting:
extends: .check-formatting
validate:
extends: .validate-terraform
variables:
ENVIRONMENTS: examples/complete
miquido-ci-schema-validation:
extends: .miquido-ci-schema-validation
bump-tag:
extends: .bump_minor_tag
docs:
extends: .generate_readme
stage: .post
push_readme:
extends: .push_readme
stage: .post
dependencies: ["docs"]
needs: ["docs"]
generate-lambda-zip:
tags:
- docker
- miquido
image:
name: public.ecr.aws/sam/build-nodejs14.x:1.66.0-20221129154622-x86_64
stage: build
script:
- cd lambda
- npm install --production
- zip -rqX lambda.zip ./*
- mv lambda.zip ../lambda.zip
artifacts:
paths:
- lambda.zip
expire_in: 1 week
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
generate-lambda-layer-zip:
tags:
- docker
- miquido
image:
name: public.ecr.aws/sam/build-nodejs14.x:1.66.0-20221129154622-x86_64
stage: build
script:
- cd lambda-layer
- make
- zip -rqX lambda-layer.zip ./*
- mv lambda-layer.zip ../lambda-layer.zip
artifacts:
paths:
- lambda-layer.zip
expire_in: 1 week
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"