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
|
||||
|
||||
# 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,
|
||||
# gitbaseRepository=cms/tibi-docs). Der rsync-User landet in htdocs des Kunden;
|
||||
# weiter runter kommt man nicht, deshalb ist RSYNC_PATH der Docroot-Pfad ab htdocs.
|
||||
# gitbaseRepository=cms/tibi-docs). Das rsync-Chroot ist der Docroot der Subdomain
|
||||
# (/docs.tibicms.de), deshalb landet "./" direkt im Webroot.
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -46,14 +46,13 @@ jobs:
|
||||
test -d dist/pagefind
|
||||
|
||||
# .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
|
||||
env:
|
||||
RSYNC_USER: ${{ github.repository }},2216
|
||||
RSYNC_PASS: ${{ github.token }}
|
||||
RSYNC_HOST: ftp1.webmakers.de
|
||||
RSYNC_PORT: "22223"
|
||||
RSYNC_PATH: docs.tibicms.de
|
||||
run: |
|
||||
set -eu
|
||||
|
||||
@@ -61,9 +60,8 @@ jobs:
|
||||
: "${RSYNC_PASS:?RSYNC_PASS missing}"
|
||||
: "${RSYNC_HOST:?RSYNC_HOST 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}"
|
||||
SSH_CMD="sshpass -e ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p ${RSYNC_PORT} -l ${RSYNC_USER}"
|
||||
@@ -72,4 +70,4 @@ jobs:
|
||||
--delete \
|
||||
-e "${SSH_CMD}" \
|
||||
--exclude=.git \
|
||||
./dist/ "${RSYNC_HOST}":"./${RSYNC_PATH}/"
|
||||
./dist/ "${RSYNC_HOST}":"./"
|
||||
Reference in new issue
Block a user