Bidello/Makefile
2024-12-13 13:08:39 +01:00

23 lines
592 B
Makefile

USER := $(shell cat user.secret)
PASSWORD := $(shell cat password.secret)
HOST := $(shell cat host.secret)
build:
cd src && dotnet build --no-restore
run:
cd entrypoint && dotnet run -- --user ${USER} --password ${PASSWORD} -H ${HOST}
test:
cd tests && dotnet test
restore:
dotnet restore && cd src && dotnet build
clean:
rm src/bin src/obj tests/bin tests/obj entrypoint/bin entrypoint/obj -fr
release:
cd entrypoint && dotnet publish -r linux-x64 -p:PublishSingleFile=true --self-contained true -c Release
cp entrypoint/bin/Release/net8.0/linux-x64/publish/entrypoint bidello