Update .gitlab-ci.yml file
This commit is contained in:
+2
-2
@@ -14,7 +14,7 @@ build:
|
|||||||
paths:
|
paths:
|
||||||
- public_html
|
- public_html
|
||||||
only:
|
only:
|
||||||
-master
|
- master
|
||||||
deploy:
|
deploy:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
image: ghcr.io/4hmz4/docker-rsync-ssh:main
|
image: ghcr.io/4hmz4/docker-rsync-ssh:main
|
||||||
@@ -25,6 +25,6 @@ deploy:
|
|||||||
- echo "${SSH_HOST_KEY}" > "${HOME}/.ssh/known_hosts"
|
- echo "${SSH_HOST_KEY}" > "${HOME}/.ssh/known_hosts"
|
||||||
- rsync -hrvz --delete --exclude=_ -e 'ssh -i id_rsa' public_html/ "${SSH_USER_HOST_LOCATION}"
|
- rsync -hrvz --delete --exclude=_ -e 'ssh -i id_rsa' public_html/ "${SSH_USER_HOST_LOCATION}"
|
||||||
only:
|
only:
|
||||||
-master
|
- master
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user