Skip to content

Commit

Permalink
build: 0.0.113
Browse files Browse the repository at this point in the history
Signed-off-by: wss-git <wssgryx@163.com>
  • Loading branch information
wss-git committed Mar 2, 2023
1 parent 60c0826 commit 89b8874
Show file tree
Hide file tree
Showing 7 changed files with 124 additions and 66 deletions.
177 changes: 116 additions & 61 deletions dist/index.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/lib/fc/function.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ export declare class FcFunction extends FcDeploy<FunctionConfig> {
readonly name: string;
originalCodeUri: string;
isBuild: boolean;
retryErrorAcrNotExist: boolean;
static readonly DEFAULT_BUILD_ARTIFACTS_PATH_SUFFIX: string;
static readonly DEFAULT_SYNC_CODE_PATH: string;
constructor(functionConf: FunctionConfig, serviceName: string, serverlessProfile: ServerlessProfile, region: string, credentials: ICredentials, curPath?: string);
Expand Down
4 changes: 2 additions & 2 deletions dist/lib/resource/acr.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ export declare class AlicloudAcr extends AlicloudClient {
}>;
getAuthorizationTokenOfRegisrty(registry: string, instanceID?: string, assumeYes?: boolean): Promise<any>;
initPersonalRepo(image: any): Promise<void>;
pushImage(image: string, instanceID?: string, assumeYes?: boolean): Promise<void>;
pushImage(imageConfig: string, instanceID?: string, assumeYes?: boolean): Promise<boolean>;
static isAcrRegistry(registry: string): boolean;
static isAciRegistry(registry: string): boolean;
static isAcreeRegistry(registry: string): boolean;
static extractRegionFromAcrRegistry(registry: string): string;
static extractRegistryFromAcrUrl(imageUrl: string): string;
static isVpcAcrRegistry(registry: string): boolean;
Expand Down
3 changes: 2 additions & 1 deletion dist/lib/retry.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export declare function promiseRetry(fn: any): Promise<any>;
export declare function promiseRetry(fn: any, retryOptions?: any): Promise<any>;
export declare function retryDeployFunctionErrorAcrNotExist(componentInstance: any, componentInputs: any, retryTimes?: number): Promise<void>;
export declare function retryDeployUntilSlsCreated(componentInstance: any, componentInputs: any, retryTimes?: number): Promise<void>;
1 change: 1 addition & 0 deletions dist/lib/utils/utils.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ export declare function getTargetTriggers(sourceTriggers: any[], onlyDelpoyTrigg
* @returns object
*/
export declare function objectDeepTransfromString(source: any): any;
export declare const isDeployFunctionErrorAcrNotExist: (message: string) => boolean;
2 changes: 1 addition & 1 deletion publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Component
Name: fc-deploy
Provider:
- 阿里云
Version: 0.0.112
Version: 0.0.113
Description: 阿里云函数计算基础组件
HomePage: https://github.com/devsapp/fc-base
Tags:
Expand Down
2 changes: 1 addition & 1 deletion src/lib/fc/function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ export class FcFunction extends FcDeploy<FunctionConfig> {
}
// upload code to oss
const defaultObjectName = `fcComponentGeneratedDir/${this.serviceName}-${this.name
}-${zipCodeFileHash.substring(0, 5)}`;
}-${zipCodeFileHash.substring(0, 5)}`;
const uploadVm = core.spinner(
`Uploading zipped code: ${zipCodeFilePath} to oss://${this.localConfig?.ossBucket}/${defaultObjectName}`,
);
Expand Down

0 comments on commit 89b8874

Please sign in to comment.