Skip to content
Snippets Groups Projects
Commit fda21347 authored by fanky's avatar fanky
Browse files

Revert "added FTP deploy"

This reverts commit 8fc1cf0d
parent 8fc1cf0d
No related branches found
No related tags found
1 merge request!1Revert "added FTP deploy"
Pipeline #3167 passed
......@@ -16,9 +16,7 @@ build:
after_script:
- TAG=`git describe --tags $(git rev-list --tags --max-count=1)`
- echo "{\"job_token\":\"$CI_JOB_TOKEN\", \"name\":\"$SITE_NAME\", \"tag\":\"$TAG\" }" > request.json
- "curl -H 'Content-Type: application/json' -X POST -d @request.json $WEBHOOK_URL"
- apt-get update -qq && apt-get install -y -qq lftp
- lftp -c "set ftp:ssl-allow no; open -u $USERNAME,$PASSWORD $HOST; mirror -Rev dist/ ./public --ignore-time --parallel=10 --exclude-glob .git* --exclude .git/"
- "curl -H 'Content-Type: application/json' -X POST -d @request.json $WEBHOOK_URL"
artifacts:
expire_in: 30 min
paths:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment