Compare commits

...

11 Commits

Author SHA1 Message Date
a8e6ee073f feat: 添加 ICP 备案号。
All checks were successful
continuous-integration/drone/push Build is passing
2023-03-30 09:02:43 +00:00
14719936fc fix: 头像图片编码问题.
All checks were successful
continuous-integration/drone/push Build is passing
2023-03-01 20:47:17 +08:00
26350e033b build: 支持构建并上传网页到景安虚机。xN
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2023-03-01 20:00:36 +08:00
91d3acc358 build: 支持构建并上传网页到景安虚机。xN
Some checks failed
continuous-integration/drone/push Build is failing
2023-03-01 19:56:50 +08:00
e41238fb60 build: 支持构建并上传网页到景安虚机。xN
Some checks reported errors
continuous-integration/drone/push Build was killed
2023-03-01 00:01:23 +08:00
404c7cba87 build: 支持构建并上传网页到景安虚机。xN
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2023-03-01 00:00:12 +08:00
930953fc1a build: 支持构建并上传网页到景安虚机。xN
Some checks failed
continuous-integration/drone/push Build is failing
2023-02-28 22:40:59 +08:00
7ad3729ae0 build: 支持构建并上传网页到景安虚机。xN
Some checks failed
continuous-integration/drone/push Build is failing
2023-02-28 22:31:51 +08:00
9a3297e1c7 build: 支持构建并上传网页到景安虚机。xN
Some checks failed
continuous-integration/drone/push Build is failing
2023-02-28 22:25:59 +08:00
abb37dbcac build: 支持构建并上传网页到景安虚机。xN
Some checks failed
continuous-integration/drone/push Build is failing
2023-02-28 21:56:12 +08:00
0549b3c385 build: 支持构建并上传网页到景安虚机。xN
Some checks reported errors
continuous-integration/drone/push Build was killed
2023-02-28 21:49:51 +08:00
5 changed files with 1748 additions and 1459 deletions

View File

@ -187,31 +187,17 @@ trigger:
- develop
steps:
- name: export
image: plugins/docker
settings:
registry: docker-registry.ivanli.cc
username:
from_secret: ivan-docker-username
password:
from_secret: ivan-docker-password
repo: docker-registry.ivanli.cc/ivan/tailwind-nextjs-blog-upload
dockerfile: Dockerfile
target: upload
cache_from:
- docker-registry.ivanli.cc/ivan/tailwind-nextjs-blog-deps:${DRONE_BRANCH}${DRONE_TAG}-amd64
tags:
- '${DRONE_COMMIT_SHA:0:8}'
- '${DRONE_BRANCH}${DRONE_TAG}'
- name: upload
image: docker:dind
volumes:
- name: dockersock
path: /var/run/docker.sock
commands:
- docker run --rm -t -e FTP_ACCOUNT=${FTP_ACCOUNT} -e FTP_PASSWORD=${FTP_PASSWORD} -e FTP_HOST=${FTP_HOST} docker-registry.ivanli.cc/ivan/tailwind-nextjs-blog-upload:${DRONE_COMMIT_SHA:0:8}
- docker pull docker-registry.ivanli.cc/ivan/tailwind-nextjs-blog-deps:${DRONE_BRANCH}${DRONE_TAG}-amd64
- docker build --pull=true --target upload -t docker-registry.ivanli.cc/ivan/tailwind-nextjs-blog-upload:${DRONE_COMMIT_SHA:0:8} --cache-from docker-registry.ivanli.cc/ivan/tailwind-nextjs-blog-deps:${DRONE_BRANCH}${DRONE_TAG}-amd64 .
- docker run --rm -t -e FTP_ACCOUNT=$${FTP_ACCOUNT} -e FTP_PASSWORD=$${FTP_PASSWORD} -e FTP_HOST=$${FTP_HOST} docker-registry.ivanli.cc/ivan/tailwind-nextjs-blog-upload:${DRONE_COMMIT_SHA:0:8}
environment:
DOCKER_BUILDKIT: "1"
FTP_ACCOUNT:
from_secret: zzidc_ftp_account
FTP_PASSWORD:
@ -251,14 +237,7 @@ steps:
🌐 {{ build.link }}
{{/success}}
services:
- name: docker
image: docker:dind
privileged: true
volumes:
- name: dockersock
path: /var/run
volumes:
- name: dockersock
temp: {}
- name: dockersock
host:
path: /var/run/docker.sock

View File

@ -32,4 +32,4 @@ FROM alpine:latest as upload
RUN apk add lftp
WORKDIR /app
COPY --from=export /app/out ./
CMD lftp -u "${FTP_ACCOUNT},${FTP_PASSWORD}" "${FTP_HOST}" -e 'set ftp:ssl-allow off && set use-feat no && mirror -R . ./WEB && exit'
CMD lftp -u "${FTP_ACCOUNT},${FTP_PASSWORD}" "${FTP_HOST}" -e 'set ftp:ssl-allow off && set use-feat no && mirror -c -R --use-pget-n=10 . ./WEB && exit'

View File

@ -25,6 +25,11 @@ export default function Footer() {
<div>{``}</div>
<Link href="/">{siteMetadata.title}</Link>
</div>
<div className="mb-2 text-sm text-gray-500 dark:text-gray-400">
<Link href="https://beian.miit.gov.cn" rel="nofollow">
ICP备2023000043号
</Link>
</div>
<div className="mb-8 text-sm text-gray-500 dark:text-gray-400">
<Link
href="https://github.com/timlrx/tailwind-nextjs-starter-blog"

View File

@ -1,6 +1,6 @@
---
name: Ivan Li
avatar: https://pan.ivanli.cc/api/v3/file/source/1234/%E5%A4%B4%E5%83%8F.png?sign=xIgy54DyFRYupxjZJbK02HmpKX8C53YR-O0I18Rxm70%3D%3A0
avatar: https://pan.ivanli.cc/api/v3/file/source/1234/头像.png?sign=xIgy54DyFRYupxjZJbK02HmpKX8C53YR-O0I18Rxm70%3D%3A0
occupation: Web Full Stack Developer
email: master@ivanli.cc
github: https://github.com/IvanLi-CN

File diff suppressed because it is too large Load Diff