File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed
libs/ngx-aws-deploy/src/lib/deploy Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 12
12
strategy :
13
13
matrix :
14
14
node-version : [12.x, 14.x, 15.x]
15
-
15
+
16
+ env :
17
+ NX_BRANCH : ${{ github.event.number }}
18
+ NX_RUN_GROUP : ${{ github.run_id }}
19
+
16
20
steps :
17
21
- name : Clone repository
18
22
# `fetch-depth` defaults to 1.
Original file line number Diff line number Diff line change 1
1
import { Schema } from './schema' ;
2
2
3
3
export const getAccessKeyId = ( ) : string => {
4
- return process . env . NG_DEPLOY_AWS_ACCESS_KEY_ID as string ;
4
+ return process . env . NG_DEPLOY_AWS_ACCESS_KEY_ID as string || process . env . AWS_ACCESS_KEY_ID as string ;
5
5
} ;
6
6
7
7
export const getSecretAccessKey = ( ) : string => {
8
- return process . env . NG_DEPLOY_AWS_SECRET_ACCESS_KEY as string ;
8
+ return process . env . NG_DEPLOY_AWS_SECRET_ACCESS_KEY as string || process . env . AWS_SECRET_ACCESS_KEY as string ;
9
9
} ;
10
10
11
11
export const getBucket = ( builderConfig : Schema ) : string => {
12
12
return process . env . NG_DEPLOY_AWS_BUCKET || ( builderConfig . bucket as string ) ;
13
13
} ;
14
14
15
15
export const getRegion = ( builderConfig : Schema ) : string => {
16
- return process . env . NG_DEPLOY_AWS_REGION || ( builderConfig . region as string ) ;
16
+ return process . env . NG_DEPLOY_AWS_REGION || ( builderConfig . region as string ) || process . env . AWS_DEFAULT_REGION ;
17
17
} ;
18
18
19
19
export const getSubFolder = ( builderConfig : Schema ) : string => {
Original file line number Diff line number Diff line change 1
1
{
2
- "id" : " Schema" ,
2
+ "$ id" : " Schema" ,
3
3
"title" : " schema" ,
4
4
"description" : " Deployment of Angular CLI applications to AWS" ,
5
5
"properties" : {
You can’t perform that action at this time.
0 commit comments