我遇到以下问题:当我的管道启动并且应通过语义发布发布发布时,什么也没有发生。仅创建正确的标签。
\n我的.releaserc看起来像这样:
{\n "branches": ["master"],\n "plugins": [\n "@semantic-release/commit-analyzer",\n "@semantic-release/release-notes-generator",\n [\n "@semantic-release/changelog",\n {\n "changelogFile": "docs/CHANGELOG.md"\n }\n ],\n [\n "@semantic-release/gitlab",\n {\n "assets": [{"path": "docs/CHANGELOG.md"}]\n }\n ]\n ]\n}\nRun Code Online (Sandbox Code Playgroud)\n我的舞台gitlab-ci.yml是这样的:
release:\n image: node:13\n stage: release\n only:\n refs:\n - master\n before_script:\n - \'echo Stage - Release started\'\n script:\n - npm install @semantic-release/gitlab\n - npm install @semantic-release/changelog\n - npx semantic-release\n after_script:\n - \'echo Stage - Release finished\'\nRun Code Online (Sandbox Code Playgroud)\n正如我所说,一切都按预期进行。管道成功并且日志中没有警告。不管怎样,唯一发生的事情就是标签被正确创建。我没有新版本。而且我没有新的CHANGELOG.md。我是否可能错过了管道或配置中的某些内容?
[12:01:03 PM] [semantic-release] \xe2\x80\xba \xe2\x84\xb9 Running …Run Code Online (Sandbox Code Playgroud) 我有一个托管在 Azure 上的 ASP.NET Blazor Web 应用程序。一切正常,除了一件小事。我按照文档IHttpContextAccessor.HttpContext中的描述使用。
public class SessionService : ISessionService
{
private readonly IHttpContextAccessor httpContextAccessor;
private readonly IUserService userService;
public SessionService(
IUserService userService,
IHttpContextAccessor httpContextAccessor)
{
this.userService = userService;
this.httpContextAccessor = httpContextAccessor;
}
public async Task<User> GetUser()
{
var userId = this.httpContextAccessor.HttpContext?.Items["userId"]?.ToString();
if (userId == null)
{
return null;
}
if (!int.TryParse(userId, out var parsedUserId))
{
return null;
}
return await this.userService.Get(parsedUserId);
}
/// <inheritdoc />
public async Task AuthenticateUser()
{
if (this.httpContextAccessor.HttpContext == null) …Run Code Online (Sandbox Code Playgroud) 我正在 Azure 应用服务(Docker 容器)中运行 KeyCloak,使用以下图像“quay.io/keycloak/keycloak:21.0.1” - 正如文档中所述
一切正常。我可以使用自定义域访问 KeyCloak,并且登录管理控制台也可以。但!一件事不起作用:数据库。
我使用的是 PostgreSQL 数据库,该数据库也托管在 Azure 上。在 DBeaver 的帮助下,我可以使用在环境变量中输入的相同凭据连接到它(这就是我从顺便说一句复制数据库 URL 的地方)。
日志声明如下:
2023-03-10T13:54:44.250741391Z 2023-03-10 13:54:44,192 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) ERROR: Failed to obtain JDBC connection
2023-03-10T13:54:44.253996869Z 2023-03-10 13:54:44,192 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) ERROR: SSL error: Certificates do not conform to algorithm constraints
2023-03-10T13:54:44.254005969Z 2023-03-10 13:54:44,192 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) ERROR: Certificates do not conform to algorithm constraints
2023-03-10T13:54:44.254020670Z 2023-03-10 13:54:44,193 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) ERROR: Certificates do not conform to algorithm constraints
2023-03-10T13:54:44.254027270Z 2023-03-10 13:54:44,194 …Run Code Online (Sandbox Code Playgroud)