File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
BUILD_DIR: =src/TalonOne
2
2
VERSION: =$(shell grep -om1 -E '^\[assembly: AssemblyVersion\("[0-9\.]+"\) \]$$' $(PWD ) /$(BUILD_DIR ) /Properties/AssemblyInfo.cs | sed 's/\[assembly: AssemblyVersion("\(.*\)")\]/\1/')
3
- DOCKER_TAG_ARCH: =$(shell [[ $(shell uname -m) == "arm64" ]] && echo "8.0-focal-arm64v8" || echo "sdk:8.0-focal")
4
3
5
4
default : testenv
6
5
17
16
--rm \
18
17
-v $(PWD):/tmp/talon-client \
19
18
-w "/tmp/talon-client/$(BUILD_DIR)" \
20
- mcr.microsoft.com/dotnet/sdk:$(DOCKER_TAG_ARCH) \
19
+ mcr.microsoft.com/dotnet/sdk:8.0 \
21
20
dotnet pack TalonOne.csproj \
22
21
-p:PackageVersion=$(VERSION) \
23
22
--output . \
37
36
--rm \
38
37
-v $(PWD):/tmp/talon-client \
39
38
-w "/tmp/talon-client/$(BUILD_DIR)" \
40
- mcr.microsoft.com/dotnet/sdk:$(DOCKER_TAG_ARCH) \
39
+ mcr.microsoft.com/dotnet/sdk:8.0 \
41
40
dotnet nuget push TalonOne.$(VERSION).nupkg \
42
41
--api-key $(apiKey) \
43
42
--source https://api.nuget.org/v3/index.json
@@ -48,5 +47,5 @@ testenv:
48
47
--rm -it \
49
48
-v $(PWD ) :/tmp/talon-client \
50
49
-w /tmp/talon-client \
51
- mcr.microsoft.com/dotnet/sdk:$( DOCKER_TAG_ARCH ) \
50
+ mcr.microsoft.com/dotnet/sdk:8.0 \
52
51
/bin/bash
You can’t perform that action at this time.
0 commit comments