From 34183b550c8b2e50fc3309eb679fa60fc456cbdb Mon Sep 17 00:00:00 2001 From: Yuqi Feng Date: Sat, 27 Aug 2022 02:38:29 +0000 Subject: some adjustment & add gitlab-ci --- .gitlab-ci.yml | 29 +++++++++++++++++++++++++++++ pages/index.vue | 4 ++-- 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 .gitlab-ci.yml 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

- code is here here + code is here here

@@ -42,7 +42,7 @@ size="small" href="https://kolektiva.media/a/jiderlesi" > - + -- cgit v1.2.3