Browse Source

added .woodpecker.yml

added umami
pull/82/head
Samuel Philipp 3 weeks ago
parent
commit
59275e7da5
  1. 34
      .woodpecker.yml
  2. 2
      src/index.html

34
.woodpecker.yml

@ -0,0 +1,34 @@
pipeline:
build:
image: node:lts
commands:
- npm install
- npm run build
deploy-dev:
image: alpine
secrets:
- FTP_HOST
- FTP_USERNAME
- 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.samuel-philipp.de/; bye" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST
when:
branch:
- develop
event:
- push
deploy:
image: alpine
secrets:
- FTP_HOST
- FTP_USERNAME
- FTP_PASSWORD
commands:
- which lftp || ( apk --update add lftp )
- lftp -e "set ftp:ssl-force true; set ssl:verify-certificate no; mirror -R ./dist/ samuel-philipp.de/; bye" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST
when:
branch:
- main
event:
- push

2
src/index.html

@ -32,6 +32,8 @@
<link rel="shortcut icon" href="img/samuel.png">
<link rel="stylesheet" href="css/main.min.css">
<script async defer data-domain="samuel-philipp.de" src="https://plausible.sp-codes.de/js/plausible.js"></script>
<script async defer data-website-id="594e86a6-02bb-407d-98e0-73e31827a785" data-do-not-track="true"
data-domains="samuel-philipp.de" src="https://umami.sp-codes.de/umami.js"></script>
</head>
<body>
<div class="site-container">

Loading…
Cancel
Save