From d3b77bd8b404ccfa0c5705e6c19c7347e218668b Mon Sep 17 00:00:00 2001 From: samuel-p Date: Fri, 1 Oct 2021 19:19:31 +0200 Subject: [PATCH] added umami.js added .woodpecker.yml --- .woodpecker.yml | 44 ++++++++++++++++++++++++++++++++++ src/_includes/layouts/base.njk | 1 + 2 files changed, 45 insertions(+) create mode 100644 .woodpecker.yml diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..41c30f6 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,44 @@ +kind: pipeline +type: docker +name: default + +steps: + - name: build + image: node:lts + commands: + - npm install + - npm run build + - name: deploy-dev + image: alpine + environment: + FTP_HOST: + from_secret: FTP_HOST + FTP_USERNAME: + from_secret: FTP_USERNAME + FTP_PASSWORD: + from_secret: FTP_PASSWORD + commands: + - which lftp || ( apk --update add lftp ) + - lftp -e "set ftp:ssl-force true; set ssl:verify-certificate no; mirror -R ./dist/ dev.sp-codes.de/; bye" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST + when: + branch: + - develop + event: + - push + - name: deploy + image: alpine + environment: + FTP_HOST: + from_secret: FTP_HOST + FTP_USERNAME: + from_secret: FTP_USERNAME + FTP_PASSWORD: + from_secret: FTP_PASSWORD + commands: + - which lftp || ( apk --update add lftp ) + - lftp -e "set ftp:ssl-force true; set ssl:verify-certificate no; mirror -R ./dist/ sp-codes.de/; bye" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST + when: + branch: + - main + event: + - push diff --git a/src/_includes/layouts/base.njk b/src/_includes/layouts/base.njk index 6b154a2..297a629 100644 --- a/src/_includes/layouts/base.njk +++ b/src/_includes/layouts/base.njk @@ -35,6 +35,7 @@ title: sp-codes +