This commit is contained in:
parent
efe23a3847
commit
bcea9f8f8f
@ -70,7 +70,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y rsync
|
apt-get install -y rsync
|
||||||
for pub in build/*; do
|
for pub in deploy/*; do
|
||||||
site=$(basename "$pub" .public)
|
site=$(basename "$pub" .public)
|
||||||
echo "Deploying $site to $USER@$HOST:/www/$site"
|
echo "Deploying $site to $USER@$HOST:/www/$site"
|
||||||
ssh -o StrictHostKeyChecking=no "$USER@$HOST" "mkdir -p /srv/www/$site"
|
ssh -o StrictHostKeyChecking=no "$USER@$HOST" "mkdir -p /srv/www/$site"
|
||||||
@ -85,5 +85,5 @@ jobs:
|
|||||||
git config user.name "CI Bot"
|
git config user.name "CI Bot"
|
||||||
git config user.email "ci@dominikmilacher.com"
|
git config user.email "ci@dominikmilacher.com"
|
||||||
git tag -f last-deploy HEAD
|
git tag -f last-deploy HEAD
|
||||||
git remote set-url origin git@"GIT_HOST_NAME":"GIT_REPO".git
|
git remote set-url origin git@"$GIT_HOST_NAME":"$GIT_REPO".git
|
||||||
git push origin last-deploy --force
|
git push origin last-deploy --force
|
||||||
Loading…
x
Reference in New Issue
Block a user