Browse Source

added umami.js

added .woodpecker.yml
pull/90/head
Samuel Philipp 8 months ago
parent
commit
d3b77bd8b4
  1. 44
      .woodpecker.yml
  2. 1
      src/_includes/layouts/base.njk

44
.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

1
src/_includes/layouts/base.njk

@ -35,6 +35,7 @@ title: sp-codes
<link rel="icon" type="image/png" href="favicon.png">
<link rel="stylesheet" href="/css/main.css">
<script async defer data-domain="sp-codes.de" src="https://plausible.sp-codes.de/js/plausible.outbound-links.js"></script>
<script async defer data-website-id="47b8022b-0537-4bb2-baa5-455a87a36ff5" src="https://umami.sp-codes.de/umami.js"></script>
</head>
<body>
<nav class="nav menu border-bottom">

Loading…
Cancel
Save