mirror of
https://codeberg.org/pluja/kycnot.me
synced 2024-10-01 01:05:59 -04:00
ok
This commit is contained in:
parent
dfe2fcbdc8
commit
f371e4b4af
11
Justfile
11
Justfile
@ -5,10 +5,9 @@ dev +command:
|
||||
|
||||
deploy build="":
|
||||
git pull
|
||||
# Set variable for build option
|
||||
{{ set build_option = if build != "" { "--build" } else { "" } }}
|
||||
docker compose up {{ build_option }} --pull=always -d
|
||||
# Set variable for restart command
|
||||
{{ set restart_cmd = if build == "" { "docker compose restart website" } else { "" } }}
|
||||
{{ restart_cmd }}
|
||||
# Use shell scripting for conditional logic
|
||||
BUILD_OPTION="{{ if build != "" { "--build" } else { "" } }}"
|
||||
docker compose up $BUILD_OPTION --pull=always -d
|
||||
# Use shell scripting for conditional logic
|
||||
if [ -z "{{ build }}" ]; then docker compose restart website; fi
|
||||
docker system prune -f
|
Loading…
Reference in New Issue
Block a user