diff options
author | vnugent <public@vaughnnugent.com> | 2024-06-24 16:46:04 -0400 |
---|---|---|
committer | vnugent <public@vaughnnugent.com> | 2024-06-24 16:46:04 -0400 |
commit | a355e12201f50d8f52738d225c270042913030e2 (patch) | |
tree | 57cc8e43357ae0cf4cdd72e8f43d5da2357c1f22 /ci/taskfile.yaml | |
parent | 86d6ba0c9869f21b2b16728abf4cb20fcf6ed769 (diff) |
ci: Consolidate ci configuration
Diffstat (limited to 'ci/taskfile.yaml')
-rw-r--r-- | ci/taskfile.yaml | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/ci/taskfile.yaml b/ci/taskfile.yaml index ed61cf9..0221bc9 100644 --- a/ci/taskfile.yaml +++ b/ci/taskfile.yaml @@ -34,6 +34,8 @@ tasks: - cmd: powershell -Command "mkdir lib -Force" ignore_error: true + + - task: compile-config - task: plugins:all #remove runtime-shared libs before they are copied @@ -86,7 +88,7 @@ tasks: - task: pb-parallel #cleanup unnecessary build files that clog up the pipeline - - for: [ build, plugins, dist, lib, webserver ] + - for: [ build, plugins, dist, lib, webserver, config ] cmd: powershell -Command "rm -Recurse '{{.ITEM}}'" ignore_error: true @@ -119,7 +121,7 @@ tasks: ignore_error: true #copy build files for target os - - for: [ plugins, dist, lib, config, webserver ] + - for: [ plugins, dist, lib, config, webserver, config ] cmd: powershell -Command "cp -Recurse -Force {{.ITEM}} {{.BUILD_DIR}}" #copy release taskfile and rename it @@ -132,6 +134,15 @@ tasks: ignore_error: true - cd build/{{.TARGET_OS}} && tar -czf ../../bin/{{.TARGET_OS}}-release.tgz . + compile-config: + internal: false + dotenv: ['build.env'] #use the local .env file when compiling config variables + cmds: + - cmd: powershell mkdir config/ -Force + ignore_error: true + - cmd: powershell './compile.ps1' -InputDir config-templates/ -OutputDir config/ + - cmd: powershell cp config-templates/routes.xml config/routes.xml -Force + prune-plugin-libs: cmds: - for: ['vnlib.utils.dll' , 'vnlib.net.http.dll', 'VNLib.Hashing.Portable.dll', 'VNLib.Plugins.Essentials.dll', 'VNLib.Plugins.dll', 'Serilog.dll', 'Serilog.Sinks.Console.dll', 'Serilog.Sinks.File.dll'] @@ -189,7 +200,7 @@ tasks: clean: ignore_error: true cmds: - - for: [ build/, bin/, dist/, plugins/, lib/, webserver/ ] + - for: [ build/, bin/, dist/, plugins/, lib/, webserver/, config/ ] cmd: powershell -Command "rm -Recurse -Force '{{.ITEM}}'" - task: container:clean
\ No newline at end of file |