2 Commits
Author SHA1 Message Date
kislovdm 1d127cadd3 ok
Create and publish a Docker image / build-and-push-image (push) Failing after 14s
2024-02-07 13:56:26 +03:00
monster 97e81c3af4 Update blank.yml
Create and publish a Docker image / build-and-push-image (push) Failing after 14s
2024-02-07 13:31:39 +03:00
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -4,6 +4,8 @@ name: Create and publish a Docker image
on: on:
push: push:
branches: [ "master" ] branches: [ "master" ]
tags:
- '*'
# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds. # Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
env: env:
+1 -1
View File
@@ -12,7 +12,7 @@ namespace Approve.Checker.Gitlab
public string GitlabToken = Environment.GetEnvironmentVariable("GITLAB_TOKEN") ?? CheckAndThrow("GITLAB_TOKEN"); public string GitlabToken = Environment.GetEnvironmentVariable("GITLAB_TOKEN") ?? CheckAndThrow("GITLAB_TOKEN");
public string MrPath = Environment.GetEnvironmentVariable("CI_OPEN_MERGE_REQUESTS")!; public string MrPath = Environment.GetEnvironmentVariable("CI_OPEN_MERGE_REQUESTS")!;
public string ProjectId = Environment.GetEnvironmentVariable("CI_PROJECT_ID") ?? CheckAndThrow("CI_PROJECT_ID"); public string ProjectId = Environment.GetEnvironmentVariable("CI_PROJECT_ID") ?? CheckAndThrow("CI_PROJECT_ID");
public string Approvers = Environment.GetEnvironmentVariable("APPROVERS_FILEPATH ") ?? CheckAndThrow("APPROVERS_FILEPATH"); public string Approvers = Environment.GetEnvironmentVariable("APPROVERS_FILEPATH") ?? CheckAndThrow("APPROVERS_FILEPATH");
private static string CheckAndThrow(string name) private static string CheckAndThrow(string name)
{ {