-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
52 lines (49 loc) · 1023 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
49
50
51
stages:
- zip
- upload
zip_repo:
only:
- main
- release
- esbjj
- cdk-pipeline-askwith
- dasmthc
- marbuss
- mrglover-overlay
- danlndnr
- csj
- hejoro
stage: zip
image:
name: public.ecr.aws/ubuntu/ubuntu:22.04_stable
script:
- apt-get -y update
- apt-get -y install zip
- echo $CI_COMMIT_REF_NAME > branch.txt
- echo $EMAIL > email.txt
- echo "email=$EMAIL\nbranch=$CI_COMMIT_REF_NAME" > build.config
- zip -r drem.zip . -x '*node_modules*' -x '*.git*' -x '*.venv*' -x '*cdk.out*'
artifacts:
paths:
- drem.zip
upload_to_s3:
only:
- main
- release
- esbjj
- cdk-pipeline-askwith
- dasmthc
- marbuss
- mrglover-overlay
- danlndnr
- csj
- hejoro
stage: upload
image:
name: public.ecr.aws/aws-cli/aws-cli:latest
entrypoint: [""]
script:
- aws --version
- ls drem.zip -lah
- echo $AWS_DEFAULT_REGION
- aws s3 cp drem.zip s3://$AWS_S3_BUCKET/$CI_COMMIT_REF_NAME/