FEAT: add plausible & drone

This commit is contained in:
prosety
2022-11-13 20:43:58 +01:00
parent edbd47e351
commit 77ae1e62fc
2 changed files with 35 additions and 0 deletions

34
.drone.yml Normal file
View File

@@ -0,0 +1,34 @@
kind: pipeline
type: docker
name: default
steps:
- name: deploy
image: docker/compose
volumes:
- name: docker
path: /var/run/docker.sock
- name: pegaz
path: /opt/pegaz
environment:
CI_DOMAIN:
from_secret: CI_DOMAIN
commands:
- apk add --upgrade npm bash findutils rsync sed
- WORKDIR="/opt/pegaz/services/pegazio"
- rm -rf $WORKDIR
- mkdir $WORKDIR
- rsync -av --progress ./ $WORKDIR --exclude ./node_modules
- cd $WORKDIR
- npm install
- npm run build
- sed -i "s|URL=.*|URL=\"https://$CI_DOMAIN\"|g" config.sh
- bash /opt/pegaz/cli.pegaz.sh update pegazio
volumes:
- name: pegaz
host:
path: /opt/pegaz
- name: docker
host:
path: /var/run/docker.sock

View File

@@ -19,6 +19,7 @@ const { title } = Astro.props;
<meta property="og:title" content="pegaz, deploy stack on the go"> <meta property="og:title" content="pegaz, deploy stack on the go">
<meta property="og:image" content="https://raw.githubusercontent.com/valerebron/pegaz/master/docs/pegaz.svg"> <meta property="og:image" content="https://raw.githubusercontent.com/valerebron/pegaz/master/docs/pegaz.svg">
<meta property="og:site_name" content="pegaz"> <meta property="og:site_name" content="pegaz">
<script defer data-domain="pegaz.io" src="https://plausible.erudi.fr/js/plausible.js"></script>
</head> </head>
<body> <body>
<slot /> <slot />