SC2029 at the database step is intended: mode, services and version expand on the client side. CI now runs shellcheck on remote/database.sh as well.
This commit is contained in:
1 parent
6e3ecb8680
commit
4d3a7eb1f4
2 files changed
+2
-1
No files matched your search
@@ -20,7 +20,7 @@ jobs:
|
|||||||
run: pip install pytest==9.1.1 ruff==0.16.9 shellcheck-py==0.11.0.1
|
run: pip install pytest==9.1.1 ruff==0.16.9 shellcheck-py==0.11.0.1
|
||||||
|
|
||||||
- name: shellcheck
|
- name: shellcheck
|
||||||
run: shellcheck deploy.sh
|
run: shellcheck deploy.sh remote/*.sh
|
||||||
|
|
||||||
- name: ruff
|
- name: ruff
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -367,6 +367,7 @@ REMOTE_ENV
|
|||||||
# goes over stdin, so the host needs nothing but bash and docker.
|
# goes over stdin, so the host needs nothing but bash and docker.
|
||||||
echo "[${SERVER}] Reconciling the database (${DATABASE_MODE})..."
|
echo "[${SERVER}] Reconciling the database (${DATABASE_MODE})..."
|
||||||
local db_status=0
|
local db_status=0
|
||||||
|
# shellcheck disable=SC2029 # mode, services and version expand here on purpose
|
||||||
ssh "$SERVER" "REGISTRY_HOST='${REGISTRY_HOST}' NETORK_VERSION='${SERVER_VERSION}' bash -s -- ${DATABASE_MODE} ${SERVICES}" \
|
ssh "$SERVER" "REGISTRY_HOST='${REGISTRY_HOST}' NETORK_VERSION='${SERVER_VERSION}' bash -s -- ${DATABASE_MODE} ${SERVICES}" \
|
||||||
< "${HERE}/remote/database.sh" 2>&1 | sed "s/^/[${SERVER}] /" || db_status=$?
|
< "${HERE}/remote/database.sh" 2>&1 | sed "s/^/[${SERVER}] /" || db_status=$?
|
||||||
if [[ $db_status -ne 0 ]]; then
|
if [[ $db_status -ne 0 ]]; then
|
||||||
|
|||||||
Reference in new issue
Block a user