Last active
February 3, 2026 11:04
-
-
Save timble-one/0cf1d8ef20f45662cfc31f5e894e9a8d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| set -e | |
| SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" | |
| REPO_ROOT="$(git -C "$SCRIPT_DIR" rev-parse --show-superproject-working-tree)" | |
| cd "$REPO_ROOT" | |
| if [ "$(docker compose ps --status running | tail -n +2)" ]; then | |
| git pull --recurse-submodules | |
| make pull-prod | |
| make prod | |
| else | |
| echo "Stack not running, skip the deployment." | |
| fi | |
| # dummy-comment for some dummy-git-commit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment