Deploy-Ziel korrigiert: rsync-Chroot ist der Docroot
Deploy tibi-docs / build-and-deploy (push) Successful in 23s
Deploy tibi-docs / build-and-deploy (push) Successful in 23s
Der Repo-Rsync landet direkt im Docroot der Subdomain, nicht im Kunden-htdocs. Ziel ist deshalb ./, ein Unterpfad docs.tibicms.de war doppelt.
This commit is contained in:
1 parent
bda5d80180
commit
fe3818612b
1 file changed
+6
-8
@@ -1,10 +1,10 @@
|
|||||||
name: Deploy tibi-docs
|
name: Deploy tibi-docs
|
||||||
|
|
||||||
# Statischer Starlight-Build, Auslieferung als Dateien über Apache.
|
# Statischer Starlight-Build, Auslieferung als Dateien über Apache.
|
||||||
# Push auf master -> Build -> rsync nach htdocs/<RSYNC_PATH>/ auf ftp1.webmakers.de.
|
# Push auf master -> Build -> rsync ./dist/ nach ftp1.webmakers.de, Ziel ./.
|
||||||
# Auth: Repo-Token (github.token) + Basispanel-Subdomain docs.tibicms.de (ID 2216,
|
# Auth: Repo-Token (github.token) + Basispanel-Subdomain docs.tibicms.de (ID 2216,
|
||||||
# gitbaseRepository=cms/tibi-docs). Der rsync-User landet in htdocs des Kunden;
|
# gitbaseRepository=cms/tibi-docs). Das rsync-Chroot ist der Docroot der Subdomain
|
||||||
# weiter runter kommt man nicht, deshalb ist RSYNC_PATH der Docroot-Pfad ab htdocs.
|
# (/docs.tibicms.de), deshalb landet "./" direkt im Webroot.
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -46,14 +46,13 @@ jobs:
|
|||||||
test -d dist/pagefind
|
test -d dist/pagefind
|
||||||
|
|
||||||
# .env ist gitignored -> Zielwerte stehen hier direkt (keine Secrets).
|
# .env ist gitignored -> Zielwerte stehen hier direkt (keine Secrets).
|
||||||
# RSYNC_USER = Repo + Basispanel-Subdomain-ID, RSYNC_PATH = Docroot ab htdocs.
|
# RSYNC_USER = Repo + Basispanel-Subdomain-ID; "./" ist der Docroot.
|
||||||
- name: deploy-live
|
- name: deploy-live
|
||||||
env:
|
env:
|
||||||
RSYNC_USER: ${{ github.repository }},2216
|
RSYNC_USER: ${{ github.repository }},2216
|
||||||
RSYNC_PASS: ${{ github.token }}
|
RSYNC_PASS: ${{ github.token }}
|
||||||
RSYNC_HOST: ftp1.webmakers.de
|
RSYNC_HOST: ftp1.webmakers.de
|
||||||
RSYNC_PORT: "22223"
|
RSYNC_PORT: "22223"
|
||||||
RSYNC_PATH: docs.tibicms.de
|
|
||||||
run: |
|
run: |
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
@@ -61,9 +60,8 @@ jobs:
|
|||||||
: "${RSYNC_PASS:?RSYNC_PASS missing}"
|
: "${RSYNC_PASS:?RSYNC_PASS missing}"
|
||||||
: "${RSYNC_HOST:?RSYNC_HOST missing}"
|
: "${RSYNC_HOST:?RSYNC_HOST missing}"
|
||||||
: "${RSYNC_PORT:?RSYNC_PORT missing}"
|
: "${RSYNC_PORT:?RSYNC_PORT missing}"
|
||||||
: "${RSYNC_PATH:?RSYNC_PATH missing}"
|
|
||||||
|
|
||||||
echo "Deploying to ${RSYNC_HOST}:${RSYNC_PATH} on port ${RSYNC_PORT} as ${RSYNC_USER}"
|
echo "Deploying to ${RSYNC_HOST} (docroot docs.tibicms.de) on port ${RSYNC_PORT} as ${RSYNC_USER}"
|
||||||
|
|
||||||
export SSHPASS="${RSYNC_PASS}"
|
export SSHPASS="${RSYNC_PASS}"
|
||||||
SSH_CMD="sshpass -e ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p ${RSYNC_PORT} -l ${RSYNC_USER}"
|
SSH_CMD="sshpass -e ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p ${RSYNC_PORT} -l ${RSYNC_USER}"
|
||||||
@@ -72,4 +70,4 @@ jobs:
|
|||||||
--delete \
|
--delete \
|
||||||
-e "${SSH_CMD}" \
|
-e "${SSH_CMD}" \
|
||||||
--exclude=.git \
|
--exclude=.git \
|
||||||
./dist/ "${RSYNC_HOST}":"./${RSYNC_PATH}/"
|
./dist/ "${RSYNC_HOST}":"./"
|
||||||
Reference in new issue
Block a user