diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..47fb5ed --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,14 @@ +name: Release OPCUA Docker image + +on: + push: + branches: + - '**' + +jobs: + docker: + uses: RaaLabs/reusable-workflows/.github/workflows/docker-release.yml@main + secrets: inherit + with: + images: raaedge.azurecr.io/connectors-opcua + dockerfile: Source/Dockerfile \ No newline at end of file diff --git a/Source/OPCUA.CodeStyle.props b/CodeStyle.props similarity index 72% rename from Source/OPCUA.CodeStyle.props rename to CodeStyle.props index 12d2fe8..94c77be 100644 --- a/Source/OPCUA.CodeStyle.props +++ b/CodeStyle.props @@ -2,7 +2,7 @@ true true - $(NoWarn);SYSLIB1006;CS1591;IL2104;IL2026;CS1570;CS1573 + $(NoWarn);SYSLIB1006;CS1591 true - + \ No newline at end of file diff --git a/Source/Dockerfile b/Source/Dockerfile index 367afcf..59045c2 100644 --- a/Source/Dockerfile +++ b/Source/Dockerfile @@ -3,8 +3,8 @@ ARG TARGETARCH WORKDIR /app VOLUME [ "/app/config" ] - COPY Source/ ./Source/ +COPY CodeStyle.props . WORKDIR /app/Source diff --git a/Source/OPCUA.csproj b/Source/OPCUA.csproj index e816e8d..fa2efb7 100644 --- a/Source/OPCUA.csproj +++ b/Source/OPCUA.csproj @@ -1,5 +1,5 @@ - + Exe net8.0 @@ -15,11 +15,11 @@ - - - - - + + + + + diff --git a/Source/Program.cs b/Source/Program.cs index 7d59a65..3bbb0fb 100644 --- a/Source/Program.cs +++ b/Source/Program.cs @@ -10,14 +10,12 @@ using Autofac; using Opc.Ua.Client; - - namespace RaaLabs.Edge.Connectors.OPCUA; [ExcludeFromCodeCoverage] static class Program { - static void Main(string[] args) + static void Main() { var application = new ApplicationBuilder() .WithModule() diff --git a/Specifications/.editorconfig b/Specifications/.editorconfig index 3382971..3dee941 100644 --- a/Specifications/.editorconfig +++ b/Specifications/.editorconfig @@ -20,4 +20,6 @@ dotnet_naming_symbols.specification_fields.applicable_accessibilities = public, dotnet_naming_style.snake_case_classes.capitalization = all_lower dotnet_naming_style.snake_case_classes.word_separator = _ -dotnet_naming_rule.private_members_with_underscore.severity = none \ No newline at end of file +dotnet_naming_rule.private_members_with_underscore.severity = none +dotnet_naming_rule.private_members_with_underscore.symbols = specification_fields +dotnet_naming_rule.private_members_with_underscore.style = snake_case_classes \ No newline at end of file diff --git a/Specifications/OPCUA.Specs.csproj b/Specifications/OPCUA.Specs.csproj index 26b9382..f362e29 100644 --- a/Specifications/OPCUA.Specs.csproj +++ b/Specifications/OPCUA.Specs.csproj @@ -12,7 +12,7 @@ - +