Changed the branch id to main

This commit is contained in:
Hamza Ahmed
2021-12-02 22:09:33 +00:00
parent 89e05cae8a
commit d7dd6b33b4
+2 -2
View File
@@ -14,7 +14,7 @@ build:
paths: paths:
- public_html - public_html
only: only:
- master - main
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 - main