Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
ai_website
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Autistici Inventati
ai_website
Commits
e8f175bc
Commit
e8f175bc
authored
Dec 18, 2019
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Show example of how to upload a static website from Gitlab CI
parent
46f91a40
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/docs/web/webdav.en.md
+25
-0
25 additions, 0 deletions
src/docs/web/webdav.en.md
with
25 additions
and
0 deletions
src/docs/web/webdav.en.md
+
25
−
0
View file @
e8f175bc
...
...
@@ -196,3 +196,28 @@ You can connect with the **'WebDAV Nav'** App (free or pro version), which you w
4.
Click "Save".
5.
Now you can see a window with the name you've chosen: click on it, and if you visualize a window with light-blue folders, it means you
are connected.
Gitlab CI
---
If you're using a Gitlab instance to manage the sources of your static
website, you might find it convenient to automatically upload new
versions of the site on every change. You can use the
[
webdav-upload
](
https://git.autistici.org/ai3/tools/webdav-upload
)
tool to upload your website, or the result of your site rendering
process, with a
`.gitlab-ci.yml`
file such as the following:
```
yaml
production
:
stage
:
deploy
script
:
-
./build-website.sh
-
pip3 install git+https://git.autistici.org/ai3/tools/webdav-upload#egg=webdav_upload
-
webdav-upload --user="$WEBDAV_USER" --password="$WEBDAV_PASSWORD" --url "https://www.autistici.org/dav/$WEBDAV_USER/" output html-mywebsite
```
In the above example the site is built with the hypothetical
*build-website.sh*
script, then the contents of the
*output*
directory
are uploaded to the
*html-mywebsite*
directory on the server, in the
WebDAV space belonging to WEBDAV_USER.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment