Skip to content

Commit

Permalink
test release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
katarinagud committed Oct 22, 2024
1 parent c1bff0e commit 2cbd6d3
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 14 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions Source/OPCUA.CodeStyle.props → CodeStyle.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<NoWarn>$(NoWarn);SYSLIB1006;CS1591;IL2104;IL2026;CS1570;CS1573</NoWarn>
<NoWarn>$(NoWarn);SYSLIB1006;CS1591</NoWarn>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
</Project>
</Project>
2 changes: 1 addition & 1 deletion Source/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ ARG TARGETARCH
WORKDIR /app

VOLUME [ "/app/config" ]

COPY Source/ ./Source/
COPY CodeStyle.props .

WORKDIR /app/Source

Expand Down
12 changes: 6 additions & 6 deletions Source/OPCUA.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="./OPCUA.CodeStyle.props" />
<Import Project="../CodeStyle.props" />
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
Expand All @@ -15,11 +15,11 @@
<TrimmerRootAssembly Include="RaaLabs.Edge.Connectors.OPCUA" preserve="all" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="RaaLabs.Edge" Version="1.16.3" />
<PackageReference Include="RaaLabs.Edge.Modules.EventHandling" Version="1.16.3" />
<PackageReference Include="RaaLabs.Edge.Modules.Configuration" Version="1.16.3" />
<PackageReference Include="RaaLabs.Edge.Modules.EdgeHub" Version="1.16.3" />
<PackageReference Include="RaaLabs.Edge.Modules.Diagnostics" Version="1.16.3" />
<PackageReference Include="RaaLabs.Edge" Version="1.18.9" />
<PackageReference Include="RaaLabs.Edge.Modules.EventHandling" Version="1.18.9" />
<PackageReference Include="RaaLabs.Edge.Modules.Configuration" Version="1.18.9" />
<PackageReference Include="RaaLabs.Edge.Modules.EdgeHub" Version="1.18.9" />
<PackageReference Include="RaaLabs.Edge.Modules.Diagnostics" Version="1.18.9" />
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Server" Version="1.5.374.118" />
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Client" Version="1.5.374.118" />
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Configuration" Version="1.5.374.118" />
Expand Down
4 changes: 1 addition & 3 deletions Source/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<EventHandling>()
Expand Down
4 changes: 3 additions & 1 deletion Specifications/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
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
2 changes: 1 addition & 1 deletion Specifications/OPCUA.Specs.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<PackageReference Include="Machine.Specifications.Runner.Console" Version="1.0.0" />
<PackageReference Include="Machine.Specifications.Runner.VisualStudio" Version="2.10.2" />
<PackageReference Include="Machine.Specifications.Should" Version="1.0.0" />
<PackageReference Include="RaaLabs.Edge.Testing" Version="1.16.3" />
<PackageReference Include="RaaLabs.Edge.Testing" Version="1.18.9" />
<PackageReference Include="coverlet.collector" Version="6.0.2" />
</ItemGroup>
<ItemGroup>
Expand Down

0 comments on commit 2cbd6d3

Please sign in to comment.