add @kichiyaki/gatsby-plugin-plausible
continuous-integration/drone/tag Build is passing
Details
continuous-integration/drone/tag Build is passing
Details
This commit is contained in:
parent
0765a86d40
commit
a5eaaaf021
|
@ -20,6 +20,9 @@ steps:
|
||||||
auto_tag: true
|
auto_tag: true
|
||||||
auto_tag_suffix: linux-amd64
|
auto_tag_suffix: linux-amd64
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
build_args:
|
||||||
|
- PLAUSIBLE_CUSTOM_DOMAIN=plausible.dwysokinski.me
|
||||||
|
- PLAUSIBLE_SCRIPT_URI=/js/script.js
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
|
@ -59,6 +62,6 @@ depends_on:
|
||||||
- linux-amd64
|
- linux-amd64
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: e25fbff4e2ab2267b31f9ca24a98138ba6bb5dfbabe8e6ffe0a519951169c6b5
|
hmac: 17ba699e82ab418a0db23c707f56fe06961ce365aaf236266ec7cbfd2d900d87
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
13
Dockerfile
13
Dockerfile
|
@ -1,7 +1,12 @@
|
||||||
FROM node:14.19.2-alpine as builder
|
FROM node:14.21.3-alpine as builder
|
||||||
|
|
||||||
ENV NODE_ENV=production
|
ARG PLAUSIBLE_CUSTOM_DOMAIN=""
|
||||||
ENV GATSBY_TELEMETRY_DISABLED=1
|
ARG PLAUSIBLE_SCRIPT_URI=""
|
||||||
|
|
||||||
|
ENV PLAUSIBLE_CUSTOM_DOMAIN=$PLAUSIBLE_CUSTOM_DOMAIN \
|
||||||
|
PLAUSIBLE_SCRIPT_URI=$PLAUSIBLE_SCRIPT_URI \
|
||||||
|
NODE_ENV=production \
|
||||||
|
GATSBY_TELEMETRY_DISABLED=1
|
||||||
|
|
||||||
RUN apk --no-cache add shadow \
|
RUN apk --no-cache add shadow \
|
||||||
gcc \
|
gcc \
|
||||||
|
@ -23,7 +28,7 @@ RUN yarn
|
||||||
COPY . ./
|
COPY . ./
|
||||||
RUN yarn build
|
RUN yarn build
|
||||||
|
|
||||||
FROM nginx:1.21-alpine
|
FROM nginx:1.23-alpine
|
||||||
COPY --from=builder /usr/src/app/public /var/www
|
COPY --from=builder /usr/src/app/public /var/www
|
||||||
COPY default.conf /etc/nginx/templates/default.conf.template
|
COPY default.conf /etc/nginx/templates/default.conf.template
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
![Screenshot](/src/images/projects/dw.png?raw=true)
|
![Screenshot](src/images/projects/dw.png?raw=true)
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
|
|
@ -65,5 +65,13 @@ module.exports = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
resolve: `@kichiyaki/gatsby-plugin-plausible`,
|
||||||
|
options: {
|
||||||
|
domain: DOMAIN,
|
||||||
|
customDomain: process.env.PLAUSIBLE_CUSTOM_DOMAIN,
|
||||||
|
scriptUri: process.env.PLAUSIBLE_SCRIPT_URI
|
||||||
|
},
|
||||||
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"author": "Dawid Wysokiński <contact@dwysokinski.me>",
|
"author": "Dawid Wysokiński <contact@dwysokinski.me>",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@kichiyaki/gatsby-plugin-plausible": "^0.0.9",
|
||||||
"@kichiyaki/roboto": "^1.0.0",
|
"@kichiyaki/roboto": "^1.0.0",
|
||||||
"@material-ui/core": "^4.11.0",
|
"@material-ui/core": "^4.11.0",
|
||||||
"@material-ui/icons": "^4.9.1",
|
"@material-ui/icons": "^4.9.1",
|
||||||
|
|
|
@ -1646,6 +1646,13 @@
|
||||||
"@babel/runtime" "^7.7.2"
|
"@babel/runtime" "^7.7.2"
|
||||||
regenerator-runtime "^0.13.3"
|
regenerator-runtime "^0.13.3"
|
||||||
|
|
||||||
|
"@kichiyaki/gatsby-plugin-plausible@^0.0.9":
|
||||||
|
version "0.0.9"
|
||||||
|
resolved "https://registry.yarnpkg.com/@kichiyaki/gatsby-plugin-plausible/-/gatsby-plugin-plausible-0.0.9.tgz#b4c0fed04e6de60fd9a78d4349aac524baad8e38"
|
||||||
|
integrity sha512-EXua0P867k9+tb82gor+6TMq7tP4UKEcqb4HSTvN+QVPZdJhICO45KawOg84GzfpSOX6cXyD8QTnGOJfMb/ATg==
|
||||||
|
dependencies:
|
||||||
|
minimatch "3.0.4"
|
||||||
|
|
||||||
"@kichiyaki/roboto@^1.0.0":
|
"@kichiyaki/roboto@^1.0.0":
|
||||||
version "1.0.0"
|
version "1.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/@kichiyaki/roboto/-/roboto-1.0.0.tgz#6f5dfb40e2423940588946c952490b123ca8088b"
|
resolved "https://registry.yarnpkg.com/@kichiyaki/roboto/-/roboto-1.0.0.tgz#6f5dfb40e2423940588946c952490b123ca8088b"
|
||||||
|
|
Loading…
Reference in New Issue