stages: - deploy deploy: stage: deploy before_script: - apt-get update -qq # Setup SSH deploy keys - 'which ssh-agent || ( apt-get install -qq openssh-client )' - eval $(ssh-agent -s) - ssh-add <(echo "$SSH_DEPLOYER_PRIVATE_KEY_BASE64" | base64 -d) # - ssh-add <(echo "$SSH_PRIVATE_KEY") - mkdir -p ~/.ssh - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' environment: name: main url: server1.bayadic.com script: - ssh deployer@server1.bayadic.com "cd /var/www/html/diplom/diplom.help/ && git checkout . && git clean -n -d -f && git checkout main && git pull origin main; exit"
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
.git | Folder | 0755 |
|
|
.gitlab-ci.yml | File | 675 B | 0664 |
|
README.md | File | 6.06 KB | 0664 |
|
index.html | File | 3.45 KB | 0664 |
|
style.css | File | 1.21 KB | 0664 |
|