diff --git a/.dockerignore b/.dockerignore
new file mode 100644
index 0000000..07c6bb4
--- /dev/null
+++ b/.dockerignore
@@ -0,0 +1,3 @@
+appsettings.json
+**/bin/
+**/obj/
\ No newline at end of file
diff --git a/.drone.yml b/.drone.yml
index e89e131..f5efdbe 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -6,15 +6,17 @@ name: build
steps:
- name: build image
image: plugins/docker
+ environment:
+ PAT:
+ from_secret: DockerPushPat
settings:
- repo: 192.168.1.196:5000/jtom38/newsbot-portal
- registry: 192.168.1.196:5000
- insecure: true
- tags:
- - latest
+ username: jtom38
+ password: $PAT
+ repo: jtom38/newsbot-portal
trigger:
branch:
- master
+ - releases/*
---
kind: pipeline
diff --git a/Newsbot.Portal.Blazor.Server/Dockerfile b/Dockerfile
similarity index 100%
rename from Newsbot.Portal.Blazor.Server/Dockerfile
rename to Dockerfile
diff --git a/Newsbot.Portal.Blazor.Server/Global.cs b/Newsbot.Portal.Blazor.Server/Global.cs
index 0eda7bd..894e61a 100644
--- a/Newsbot.Portal.Blazor.Server/Global.cs
+++ b/Newsbot.Portal.Blazor.Server/Global.cs
@@ -2,6 +2,6 @@ namespace Newsbot.Portal.Blazor.Server;
public static class Global
{
- public static HttpClient HttpClient { get; set; }
+ public static HttpClient? HttpClient { get; set; }
public static string? DefaultInstanceUri { get; set; }
}
\ No newline at end of file
diff --git a/Newsbot.Portal.Blazor.Server/Newsbot.Portal.Blazor.Server.csproj b/Newsbot.Portal.Blazor.Server/Newsbot.Portal.Blazor.Server.csproj
index a6da8b6..8ff23fb 100644
--- a/Newsbot.Portal.Blazor.Server/Newsbot.Portal.Blazor.Server.csproj
+++ b/Newsbot.Portal.Blazor.Server/Newsbot.Portal.Blazor.Server.csproj
@@ -7,12 +7,6 @@
Title | -Publish Date | -
- @item.Title - |
- @item.PubDate | -
Source | -Name | -Type | -
@item.Source | -- @item.Name - | -@item.Type | -