From bd3a7a25792b837c5f28c7580adf132abc6f35e7 Mon Sep 17 00:00:00 2001 From: vnugent Date: Sun, 25 Feb 2024 01:11:06 -0500 Subject: Squashed commit of the following: commit 069f81fc3c87c437eceff756ddca7a4c1b58044d Author: vnugent Date: Sat Feb 24 22:33:34 2024 -0500 feat: #3 setup mode, admin signup, fixes, and contianerize! commit 97ffede9eb312fca0257afa06969d47a12703f3b Author: vnugent Date: Mon Feb 19 22:26:03 2024 -0500 feat: new account setup and invitation links commit 1c8f59bc0a1b25ce5013b0f1fc7fa73c0de415d6 Author: vnugent Date: Thu Feb 15 16:49:59 2024 -0500 feat: update packages, drag/drop link, and fix some button padding --- ci/taskfile.yaml | 86 +++++++++++++++++++++----------------------------------- 1 file changed, 32 insertions(+), 54 deletions(-) (limited to 'ci/taskfile.yaml') diff --git a/ci/taskfile.yaml b/ci/taskfile.yaml index e59e080..1a36e41 100644 --- a/ci/taskfile.yaml +++ b/ci/taskfile.yaml @@ -9,9 +9,16 @@ vars: BUILDS_URL: https://www.vaughnnugent.com/public/resources/software/builds includes: + install: + taskfile: install.taskfile.yaml + plugins: taskfile: plugins.taskfile.yaml + container: + dir: container #always run from the container directory + taskfile: container/Taskfile.yaml + tasks: build: @@ -27,44 +34,37 @@ tasks: - task: install-plugins - task: install-webserver + + #run container build last + - task: container:build install-webserver: cmds: - #setup env - - task: create-env - vars: - TARGET_OS: win-x64 - - - task: create-env - vars: - TARGET_OS: linux-x64 - - - task: create-env - vars: - TARGET_OS: osx-x64 - + - for: [ win-x64, linux-x64, osx-x64 ] + task: create-env + vars: + TARGET_OS: '{{.ITEM}}' postbuild_success: cmds: #make bin dir - cmd: powershell -Command "mkdir bin -Force" ignore_error: true + - for: [ win-x64, linux-x64, osx-x64 ] + task: pack + vars: + TARGET_OS: '{{.ITEM}}' - - task: pack - vars: - TARGET_OS: win-x64 - - task: pack - vars: - TARGET_OS: linux-x64 - - task: pack - vars: - TARGET_OS: osx-x64 - + - task: container:postbuild_success install-plugins: cmds: #add plugins - task: plugins:all + + build-container: + cmds: + - task: container:build create-env: vars: @@ -74,17 +74,9 @@ tasks: - cmd: powershell -Command "mkdir {{.BUILD_DIR}} -Force" ignore_error: true - #copy plugins - - cmd: powershell -Command "cp -Recurse -Force plugins {{.BUILD_DIR}}" - - #copy wwwroot - - cmd: powershell -Command "cp -Recurse -Force dist {{.BUILD_DIR}}" - - #copy libraries - - cmd: powershell -Command "cp -Recurse -Force lib {{.BUILD_DIR}}" - - #copy config - - cmd: powershell -Command "cp -Recurse -Force config {{.BUILD_DIR}}" + #copy build files + - for: [ plugins, dist, lib, config ] + cmd: powershell -Command "cp -Recurse -Force {{.ITEM}} {{.BUILD_DIR}}" - task: get-webserver vars: @@ -94,27 +86,14 @@ tasks: get-webserver: internal: true cmds: - - task: install + - task: install:install vars: PROJECT_NAME: 'VNLib.Webserver' MODULE_NAME: "VNLib.Webserver" FILE_NAME: "{{.TARGET_OS}}-release.tgz" - BUILD_DIR: '{{.BUILD_DIR}}/webserver' + DIR: '{{.BUILD_DIR}}/webserver' - cmd: powershell -Command "cp -Force ./config/config.json {{.BUILD_DIR}}/config.json" - - install: - internal: true - vars: - DIR: '"{{.BUILD_DIR}}"' - cmds: - #make the plugin directory - - cmd: powershell -Command "mkdir {{.DIR}} -Force" - ignore_error: true - - cd {{.DIR}} && powershell "{{.USER_WORKING_DIR}}/install.ps1" -BaseUrl {{.BUILDS_URL}} -ModuleName {{.MODULE_NAME}} -ProjectName {{.PROJECT_NAME}} -FileName {{.FILE_NAME}} - - cd {{.DIR}} && tar -xzf {{.FILE_NAME}} - #remove the tar file - - cd {{.DIR}} && powershell -Command "rm {{.FILE_NAME}}" pack: internal: true @@ -127,8 +106,7 @@ tasks: clean: ignore_error: true cmds: - - cmd: powershell -Command "rm -Recurse -Force ./build" - - cmd: powershell -Command "rm -Recurse -Force ./bin" - - cmd: powershell -Command "rm -Recurse -Force ./dist" - - cmd: powershell -Command "rm -Recurse -Force ./plugins" - - cmd: powershell -Command "rm -Recurse -Force ./lib" \ No newline at end of file + - for: [ ./build, ./bin, ./dist, ./plugins, ./lib ] + cmd: powershell -Command "rm -Recurse -Force '{{.ITEM}}'" + + - task: container:clean \ No newline at end of file -- cgit