@seeka-labs/cli-apps 1.1.25 → 1.1.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
stages:
|
|
2
|
-
|
|
2
|
+
- deploy
|
|
3
3
|
|
|
4
4
|
variables:
|
|
5
5
|
LAMBDA_FUNC_RESOURCE_NAME: seeka-app-example-name
|
|
@@ -7,31 +7,31 @@ variables:
|
|
|
7
7
|
|
|
8
8
|
workflow:
|
|
9
9
|
rules:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
|
11
|
+
when: never
|
|
12
|
+
- if: '$CI_COMMIT_BRANCH == "main" && ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "web")'
|
|
13
|
+
when: always
|
|
14
|
+
- if: '$CI_COMMIT_BRANCH == "staging" && ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "web")'
|
|
15
|
+
when: always
|
|
16
16
|
|
|
17
17
|
deploy:
|
|
18
18
|
stage: deploy
|
|
19
|
-
image: node:
|
|
19
|
+
image: node:20-bullseye
|
|
20
20
|
before_script:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
21
|
+
- echo "installing aws cli"
|
|
22
|
+
- curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
|
|
23
|
+
- unzip awscliv2.zip
|
|
24
|
+
- ./aws/install --bin-dir /usr/local/bin --install-dir /usr/local/aws-cli --update
|
|
25
|
+
- ls -l /usr/local/bin/aws
|
|
26
|
+
- aws --version
|
|
27
|
+
- echo "using environment variables AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and AWS_DEFAULT_REGION for accessing the AWS CLI"
|
|
28
|
+
- echo "installing zip"
|
|
29
|
+
- apt-get update
|
|
30
|
+
- apt-get install zip
|
|
31
31
|
script:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
- echo "deploying AWS lambda func $LAMBDA_FUNC_RESOURCE_NAME from branch $CI_COMMIT_BRANCH"
|
|
33
|
+
- yarn install --production=false
|
|
34
|
+
- yarn deploy
|
|
35
35
|
only:
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
- main
|
|
37
|
+
- staging
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seeka-labs/cli-apps",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.26",
|
|
4
4
|
"description": "Seeka - Apps CLI",
|
|
5
5
|
"author": "SEEKA <platform@seeka.co>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"ts-jest": "^29.2.5",
|
|
46
46
|
"typescript": "^5.7.2"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "8e1095a0d5ec336fcb772d490a4b039a70f94bff",
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"lodash-es": "^4.17.21",
|
|
51
51
|
"source-map-support": "^0.5.21"
|