FEAT: add plausible & drone
This commit is contained in:
34
.drone.yml
Normal file
34
.drone.yml
Normal 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
|
@@ -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 />
|
||||||
|
Reference in New Issue
Block a user