Commit graph

22 commits

Author SHA1 Message Date
f889ff5050 fix: split command string before running subprocess
- use command.split(" ") to convert command to a list before running

🤖
2023-12-21 20:33:30 +01:00
899b1f1c81 doc: update config file help and reorder options 2023-12-21 19:15:58 +01:00
b4ac46f925 refactor: optimize git fetch process
- replace direct git fetch call with origin.fetch method for better error handling
- use fetch result to check for new commits instead of comparing HEAD with active branch

🤖
2023-12-21 18:38:28 +01:00
130b26ba5f feat: add self-update functionality
- add new configuration option `self-update` to enable automatic updates
- implement `do_selfupdate` function in `lib/helper.py` to perform the update
- call `do_selfupdate` in `dc-ops` if `self-update` is enabled

🤖
2023-12-21 18:38:03 +01:00
a2e5852159 feat: add loglevel as command line arguments
- add new argument "--loglevel"
- set loglevel based on the argument if provided
  - otherwise use the value from the config file

🤖
2023-12-21 15:55:58 +01:00
db6fd25741 feat: add command line argument to irgnore new git commits
- add new argument `--ignore-git-status` to continue even if there are no new commits
- update `update_git_repo` function to accept new argument and skip git status check if argument is passed
- update README.md with new Parameters section

🤖
2023-12-21 15:54:55 +01:00
16bc0974e1 fix: improve subprocess logging
- show subprocess.run call on DEBUG loglevel

🤖
2023-12-20 14:49:48 +01:00
9c1fa801e0 feat: add compose-opts configuration option
- add new configuration option `compose-opts` to define additional parameters
- update `README.md` to include `compose-opts` in Configuration Options

🤖
2023-12-20 14:49:48 +01:00
72611fe619 refactor: move helper functions to separate module
🤖
2023-12-20 14:10:01 +01:00
7ca3da52d9 refactor: move git repo handling to function
- move git repo update logic into a separate function
- add error handling for each step in the update process
- return early if any step in the update process fails
- call the new function in the main loop for each stack

🤖
2023-12-20 14:10:01 +01:00
8388362701 refactor: move subprocess calls to function
- extract subprocess execution into a separate function
- replace direct subprocess calls with function calls

🤖
2023-12-20 14:10:01 +01:00
55d00d1b08 doc: update README with configuration options
- add section for configuration options
- explain each configuration option in detail
- provide examples for each configuration option

🤖
2023-12-20 14:10:01 +01:00
4ee278dd86 feat: add pre and post commands support
- add pre-command execution before running docker compose
- add post-command execution after running docker compose
- update config.yml.example to include pre and post commands

🤖
2023-12-20 14:10:01 +01:00
18cce050e2 fix: exec docker compose in stackdir 2023-12-20 14:10:01 +01:00
5640899198 feat: add configurable log level 2023-12-20 14:10:01 +01:00
ef0620ee41 feat: replace shell script with python implementation
- add requirements.txt
- allow disabling a stack
- update config example
- update README
2023-12-20 14:09:58 +01:00
77a3ae1ed6 fix: handle git fetch/pull failure
- continue if `git fetch` or `git pull` fails
2023-12-18 22:19:18 +01:00
208eed8048 fix(dc-ops): ensure proper quoting in script
- Quote variables in `dirname` to prevent word splitting
- Use quotes around `$LINE` in `grep` to handle spaces
- Quote `cd` paths to handle directories with spaces
- Quote `docker compose` file argument to handle file names with spaces
🤖
2023-12-18 10:58:13 +01:00
5eecfcb2e7 fix: suppress error on missing stackfile 2023-12-17 19:23:38 +01:00
203626f7e2 doc: update usage instructions
- replace vague instructions with specific command examples
- clarify the use of `stacklist` file

🤖
2023-12-15 22:55:21 +01:00
41d3d04fe7 feat: enhance stacklist handling
- add support for passing stacklist as cli parameters
- refactor iteration over stacklist entries
- improve comments for better code understanding
- update README.md

🤖
2023-12-15 22:55:21 +01:00
813e203e35 Genesis 2023-12-15 20:58:36 +01:00