Skip to content
Snippets Groups Projects
Commit 1b22a82b authored by obaz's avatar obaz
Browse files

moved commands to script section

parent 25fa297b
Branches
No related tags found
No related merge requests found
......@@ -209,14 +209,11 @@ tool to upload your website through Gitlab's continuous integration.
To do so, you will need to add the following lines to your `.gitlab-ci.yml` file:
1. You will need pip3 to be installed in your runner, so if python3-pip doesn't come installed by default in the Docker image you're using in your `.gitlab-ci.yml` script, you will need to install it in the `before-script` section of the file:
1. You will need pip3 to be installed in your runner, so if python3-pip doesn't come installed by default in the Docker image you're using in your `.gitlab-ci.yml` script, you will need to install it first thing. Assuming you're using a Debian image, this would be the first command in your script:
```
before_script:
- apt-get update -y && apt-get install -yq python3-pip
```
1. install webdav_upload in your runner with the following command:
1. Install webdav_upload in your runner with the following command:
pip3 install git+https://git.autistici.org/ai3/tools/webdav-upload#egg=webdav_upload
......@@ -237,13 +234,12 @@ What follows is an example of a full script:
```
production:
stage: deploy
before_script:
- apt-get update -y && apt-get install -yq python3-pip
script:
- apt-get update -y && apt-get install -yq python3-pip
- pip3 install git+https://git.autistici.org/ai3/tools/webdav-upload#egg=webdav_upload
- jekyll build -d output
# we assume you are building your website with jekyll and the
# output is stored in a folder called `output` - but you can use
# whatever system you prefer to build your website
- 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-folder html-yourwebsite
```
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment