From 43efdd1945cfde87c3f2b5cedb88cddd01a9f7f6 Mon Sep 17 00:00:00 2001 From: Robert Olejnik Date: Wed, 4 Oct 2023 08:55:03 +0200 Subject: [PATCH] Added deployment --- README.md | 7 +++++++ Taskfile.yml | 3 +++ 2 files changed, 10 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..9196ab4 --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +## Deploymnet + +install go-task + +then: + +go-task deploy diff --git a/Taskfile.yml b/Taskfile.yml index bac6455..17f6f8e 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -15,5 +15,8 @@ tasks: script-dots: cmds: - bun build --minify --target=browser --watch --outdir=./src/assets/scripts/ ./scripts/dots/dots.ts + deploy: + cmds: + - cd src && bsdtar --no-acls --no-mac-metadata --no-xattrs --exclude Dockerfile --exclude-vcs --exclude '*.yml' --exclude README.md --exclude '*.sh' -cf - . | kubectl -n dynamic-sites exec -it deploy/dynamic-sites -- tar -C /sites/teonite.com -xf - default: deps: [scss, script-nav, script-dots, serve]