Compare commits
5 Commits
Author | SHA1 | Date |
---|---|---|
Dawid Wysokiński | 3f512ba34a | |
Dawid Wysokiński | d6d74aac6e | |
Dawid Wysokiński | 5e634300de | |
Dawid Wysokiński | a5eaaaf021 | |
Dawid Wysokiński | 0765a86d40 |
59
.drone.yml
59
.drone.yml
|
@ -1,59 +0,0 @@
|
|||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: linux-amd64
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
|
||||
steps:
|
||||
- name: publish
|
||||
image: plugins/docker
|
||||
settings:
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
registry: gitea.dwysokinski.me
|
||||
repo: gitea.dwysokinski.me/kichiyaki/dwysokinski.me
|
||||
auto_tag: true
|
||||
auto_tag_suffix: linux-amd64
|
||||
dockerfile: Dockerfile
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- tag
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: manifest
|
||||
|
||||
steps:
|
||||
- name: manifest
|
||||
image: plugins/manifest
|
||||
settings:
|
||||
auto_tag: "true"
|
||||
ignore_missing: "true"
|
||||
spec: manifest.tmpl
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
- name: manifest-latest
|
||||
image: plugins/manifest
|
||||
settings:
|
||||
tags: latest
|
||||
ignore_missing: "true"
|
||||
spec: manifest.tmpl
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- tag
|
||||
|
||||
depends_on:
|
||||
- linux-amd64
|
|
@ -0,0 +1,20 @@
|
|||
when:
|
||||
event: [tag]
|
||||
ref: refs/tags/v*
|
||||
|
||||
steps:
|
||||
publish:
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
group: docker
|
||||
settings:
|
||||
platforms: linux/amd64,linux/arm64/v8
|
||||
repo: gitea.dwysokinski.me/kichiyaki-packages/dwysokinski.me
|
||||
registry: gitea.dwysokinski.me
|
||||
auto_tag: true
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
build_args:
|
||||
- PLAUSIBLE_CUSTOM_DOMAIN=plausible.dwysokinski.me
|
||||
- PLAUSIBLE_SCRIPT_URI=/js/script.js
|
18
Dockerfile
18
Dockerfile
|
@ -1,7 +1,11 @@
|
|||
FROM node:14.19.2-alpine as builder
|
||||
FROM node:18.17-alpine as builder
|
||||
|
||||
ENV NODE_ENV=production
|
||||
ENV GATSBY_TELEMETRY_DISABLED=1
|
||||
ARG PLAUSIBLE_CUSTOM_DOMAIN=""
|
||||
ARG PLAUSIBLE_SCRIPT_URI=""
|
||||
|
||||
ENV PLAUSIBLE_CUSTOM_DOMAIN=$PLAUSIBLE_CUSTOM_DOMAIN \
|
||||
PLAUSIBLE_SCRIPT_URI=$PLAUSIBLE_SCRIPT_URI \
|
||||
GATSBY_TELEMETRY_DISABLED=1
|
||||
|
||||
RUN apk --no-cache add shadow \
|
||||
gcc \
|
||||
|
@ -17,13 +21,17 @@ RUN apk --no-cache add shadow \
|
|||
zlib-dev \
|
||||
file \
|
||||
pkgconf
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
COPY package.json yarn.lock ./
|
||||
RUN yarn
|
||||
RUN yarn --network-timeout 300000
|
||||
|
||||
COPY . ./
|
||||
ENV NODE_ENV=production
|
||||
RUN yarn build
|
||||
|
||||
FROM nginx:1.21-alpine
|
||||
FROM nginx:1.25-alpine
|
||||
|
||||
COPY --from=builder /usr/src/app/public /var/www
|
||||
COPY default.conf /etc/nginx/templates/default.conf.template
|
||||
EXPOSE 80
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
![Screenshot](/src/images/projects/dw.png?raw=true)
|
||||
![Screenshot](src/images/projects/dw.png?raw=true)
|
||||
|
||||
## 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",
|
||||
"author": "Dawid Wysokiński <contact@dwysokinski.me>",
|
||||
"dependencies": {
|
||||
"@kichiyaki/gatsby-plugin-plausible": "^0.0.9",
|
||||
"@kichiyaki/roboto": "^1.0.0",
|
||||
"@material-ui/core": "^4.11.0",
|
||||
"@material-ui/icons": "^4.9.1",
|
||||
|
|
|
@ -1646,6 +1646,13 @@
|
|||
"@babel/runtime" "^7.7.2"
|
||||
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":
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/@kichiyaki/roboto/-/roboto-1.0.0.tgz#6f5dfb40e2423940588946c952490b123ca8088b"
|
||||
|
|
Loading…
Reference in New Issue