Skip to content
Snippets Groups Projects
Commit eea85f70 authored by Moritz Stückler's avatar Moritz Stückler :cowboy:
Browse files

fix: deployment url

parent d24af5c8
No related branches found
No related tags found
No related merge requests found
Pipeline #9778 passed
......@@ -26,7 +26,7 @@ build:
- dist
environment:
name: $CI_COMMIT_REF_SLUG
url: $TARGET_HOST/$CI_PROJECT_NAME/$CI_COMMIT_REF_SLUG
url: $SITE_URL
deploy:
stage: deploy
......@@ -37,12 +37,12 @@ deploy:
- apk add --no-cache lftp openssh
- mkdir -p ~/.ssh
- echo "$SSH_KNOWN_HOSTS" >> ~/.ssh/known_hosts
- echo "Deploying for branch $CI_COMMIT_REF_SLUG – will be available at 🌎 $TARGET_HOST/$CI_PROJECT_NAME/$CI_COMMIT_REF_SLUG"
- echo "Deploying for branch $CI_COMMIT_REF_SLUG – will be available at 🌎 $SITE_URL"
script:
- lftp -e "set ftp:list-options -a; set net:timeout 5; set net:max-retries 3; set net:reconnect-interval-base 5; open sftp://$SFTP_HOST; user $SFTP_USER $SFTP_PASSWORD; mirror --reverse --delete ./dist/ $SFTP_FOLDER/$CI_COMMIT_REF_SLUG/; bye"
environment:
name: $CI_COMMIT_REF_SLUG
url: $TARGET_HOST/$CI_PROJECT_NAME/$CI_COMMIT_REF_SLUG
url: $SITE_URL
on_stop: delete
delete:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment