@yunuseon/kayra 0.20.0 → 0.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -134,7 +134,9 @@
|
|
|
134
134
|
ansible.builtin.shell:
|
|
135
135
|
cmd: |
|
|
136
136
|
set -euo pipefail
|
|
137
|
-
|
|
137
|
+
releases={{ platform_dir }}/releases/{{ app.name }}
|
|
138
|
+
if [ ! -d "$releases" ]; then echo "never deployed"; exit 0; fi
|
|
139
|
+
live="$(find "$releases" -maxdepth 1 -name '*.env' -printf '%f\n' | sort | tail -1 | sed -n 's/^[0-9]\{8\}T[0-9]\{6\}Z-\([0-9a-f]\{40\}\)\.env$/\1/p')"
|
|
138
140
|
if [ -z "$live" ]; then echo "never deployed"; exit 0; fi
|
|
139
141
|
if [ -n "$(docker ps -q --filter label=com.docker.compose.project={{ app.name }} --filter status=running --filter status=restarting)" ]; then echo "runs"; exit 0; fi
|
|
140
142
|
cd {{ platform_dir }}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yunuseon/kayra",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.1",
|
|
4
4
|
"description": "A self-hosted app platform and the CLI that runs it: Traefik, Authelia, a registry, rootless BuildKit and a small deployer per server, set up with OpenTofu and Ansible.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Yunus Öztürk",
|