Skip to content

Commit

Permalink
Merge pull request #207 from devsapp/fix-custom-domain-methods
Browse files Browse the repository at this point in the history
fix custom domain methods and acree push
  • Loading branch information
rsonghuster authored Nov 6, 2023
2 parents 8ae01ff + c914054 commit 03f45e0
Show file tree
Hide file tree
Showing 6 changed files with 84 additions and 82 deletions.
Binary file modified dist/build/Release/cpufeatures.node
Binary file not shown.
140 changes: 71 additions & 69 deletions dist/index.js

Large diffs are not rendered by default.

Binary file modified dist/lib/protocol/crypto/build/Release/sshcrypto.node
Binary file not shown.
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.119
Version: 0.0.120
Description: 阿里云函数计算基础组件
HomePage: https://github.com/devsapp/fc-base
Tags:
Expand Down
16 changes: 8 additions & 8 deletions src/lib/fc/custom-domain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,14 +245,14 @@ export class FcCustomDomain extends IInputsBase {
functionName: this.functionName,
});
}
if (!Object.prototype.hasOwnProperty.call(routeConfig, 'methods')) {
this.logger.debug(
`set default methods: ${this.httpMethods} for domain: ${this.customDomainConf.domainName}`,
);
Object.assign(routeConfig, {
methods: this.httpMethods,
});
}
// if (!Object.prototype.hasOwnProperty.call(routeConfig, 'methods')) {
// this.logger.debug(
// `set default methods: ${this.httpMethods} for domain: ${this.customDomainConf.domainName}`,
// );
// Object.assign(routeConfig, {
// methods: this.httpMethods,
// });
// }
resolvedRouteConfigs.push(routeConfig);
}
Object.assign(resolvedCustomDomainConf, {
Expand Down
8 changes: 4 additions & 4 deletions src/lib/resource/acr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,13 @@ export class AlicloudAcr extends AlicloudClient {
}
// try to push image
try {
this.logger.log(`Pushing docker image: ${image}...`, 'yellow');
this.logger.log(`Pushing docker image: ${image} ...`, 'yellow');
execSync(`docker push ${image}`, { stdio: 'inherit' });
return retryErrorAcrNotExist;
} catch (e) {
if (image === resolvedImage) {
throw e;
}
// if (image === resolvedImage) {
// throw e;
// }
this.logger.warn(StdoutFormatter.stdoutFormatter.warn('failed', `push image: ${image}`));
this.logger.debug(`Push image: ${image} failed, error is ${e}`);
}
Expand Down

0 comments on commit 03f45e0

Please sign in to comment.