Skip to content

Commit 89b8874

Browse files
committed
build: 0.0.113
Signed-off-by: wss-git <wssgryx@163.com>
1 parent 60c0826 commit 89b8874

File tree

7 files changed

+124
-66
lines changed

7 files changed

+124
-66
lines changed

dist/index.js

Lines changed: 116 additions & 61 deletions
Large diffs are not rendered by default.

dist/lib/fc/function.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ export declare class FcFunction extends FcDeploy<FunctionConfig> {
8787
readonly name: string;
8888
originalCodeUri: string;
8989
isBuild: boolean;
90+
retryErrorAcrNotExist: boolean;
9091
static readonly DEFAULT_BUILD_ARTIFACTS_PATH_SUFFIX: string;
9192
static readonly DEFAULT_SYNC_CODE_PATH: string;
9293
constructor(functionConf: FunctionConfig, serviceName: string, serverlessProfile: ServerlessProfile, region: string, credentials: ICredentials, curPath?: string);

dist/lib/resource/acr.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ export declare class AlicloudAcr extends AlicloudClient {
1414
}>;
1515
getAuthorizationTokenOfRegisrty(registry: string, instanceID?: string, assumeYes?: boolean): Promise<any>;
1616
initPersonalRepo(image: any): Promise<void>;
17-
pushImage(image: string, instanceID?: string, assumeYes?: boolean): Promise<void>;
17+
pushImage(imageConfig: string, instanceID?: string, assumeYes?: boolean): Promise<boolean>;
1818
static isAcrRegistry(registry: string): boolean;
19-
static isAciRegistry(registry: string): boolean;
19+
static isAcreeRegistry(registry: string): boolean;
2020
static extractRegionFromAcrRegistry(registry: string): string;
2121
static extractRegistryFromAcrUrl(imageUrl: string): string;
2222
static isVpcAcrRegistry(registry: string): boolean;

dist/lib/retry.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
export declare function promiseRetry(fn: any): Promise<any>;
1+
export declare function promiseRetry(fn: any, retryOptions?: any): Promise<any>;
2+
export declare function retryDeployFunctionErrorAcrNotExist(componentInstance: any, componentInputs: any, retryTimes?: number): Promise<void>;
23
export declare function retryDeployUntilSlsCreated(componentInstance: any, componentInputs: any, retryTimes?: number): Promise<void>;

dist/lib/utils/utils.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,4 @@ export declare function getTargetTriggers(sourceTriggers: any[], onlyDelpoyTrigg
3535
* @returns object
3636
*/
3737
export declare function objectDeepTransfromString(source: any): any;
38+
export declare const isDeployFunctionErrorAcrNotExist: (message: string) => boolean;

publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Type: Component
22
Name: fc-deploy
33
Provider:
44
- 阿里云
5-
Version: 0.0.112
5+
Version: 0.0.113
66
Description: 阿里云函数计算基础组件
77
HomePage: https://github.com/devsapp/fc-base
88
Tags:

src/lib/fc/function.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ export class FcFunction extends FcDeploy<FunctionConfig> {
649649
}
650650
// upload code to oss
651651
const defaultObjectName = `fcComponentGeneratedDir/${this.serviceName}-${this.name
652-
}-${zipCodeFileHash.substring(0, 5)}`;
652+
}-${zipCodeFileHash.substring(0, 5)}`;
653653
const uploadVm = core.spinner(
654654
`Uploading zipped code: ${zipCodeFilePath} to oss://${this.localConfig?.ossBucket}/${defaultObjectName}`,
655655
);

0 commit comments

Comments
 (0)