summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuqi Feng <freach@freach.ltd>2022-08-27 02:38:29 +0000
committerYuqi Feng <freach@freach.ltd>2022-08-27 02:38:29 +0000
commit34183b550c8b2e50fc3309eb679fa60fc456cbdb (patch)
tree25036e67de60b0c47bb75f667478fbf2257c5073
parent5bd046abd8fdab4f6f49564e8ce2f6e4c22d859c (diff)
some adjustment & add gitlab-ci
-rw-r--r--.gitlab-ci.yml29
-rwxr-xr-xpages/index.vue4
2 files changed, 31 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..08343ca
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,29 @@
+stages:
+ - build
+ - deploy
+
+variables:
+ WEBDAV_URL: https://dav.frcsm.de/www/
+ WEBDAV_REMOTE_PATH: html/
+ WEBDAV_USERNAME: $WEBDAV_USER
+
+build:
+ stage: build
+ image: debian:testing
+ script:
+ - apt update -y
+ - apt install npm
+ - npm install
+ - npm run generate
+ artifacts:
+ paths:
+ - .output/
+deploy:
+ stage: deploy
+ image:
+ name: rclone/rclone:latest
+ entrypoint: [""]
+ dependencies:
+ - build
+ script:
+ - "rclone sync --webdav-url ${WEBDAV_URL} --webdav-user ${WEBDAV_USERNAME} --webdav-pass $(echo -n \"${WEBDAV_PASSWORD}\" | rclone obscure -) ./output/public :webdav:${WEBDAV_REMOTE_PATH}/html/"
diff --git a/pages/index.vue b/pages/index.vue
index 186e3f7..1c23a32 100755
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -10,7 +10,7 @@
Its under building
</h2>
<h2 class="text-center text-primary mb-3">
- code is here <a href="https://git.frcsm.de/freach/www-frc/">here</a>
+ code is here <a href="https://lazulis.frcsm.de/cgit/freach/www-frc.git">here</a>
</h2>
</v-col>
</v-row>
@@ -42,7 +42,7 @@
size="small"
href="https://kolektiva.media/a/jiderlesi"
>
- <peertube color="#388E3C" offsetY="-0.4"></peertube>
+ <peertube color="#388E3C" offsetY="-0.4" offsetX="0.3"></peertube>
</v-btn>
</v-col>
</v-row>