Compare commits
11 Commits
c2dca0e57b
...
a8e6ee073f
Author | SHA1 | Date | |
---|---|---|---|
a8e6ee073f | |||
14719936fc | |||
26350e033b | |||
91d3acc358 | |||
e41238fb60 | |||
404c7cba87 | |||
930953fc1a | |||
7ad3729ae0 | |||
9a3297e1c7 | |||
abb37dbcac | |||
0549b3c385 |
33
.drone.yml
33
.drone.yml
@ -187,31 +187,17 @@ trigger:
|
|||||||
- develop
|
- develop
|
||||||
|
|
||||||
steps:
|
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
|
- name: upload
|
||||||
image: docker:dind
|
image: docker:dind
|
||||||
volumes:
|
volumes:
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
commands:
|
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:
|
environment:
|
||||||
|
DOCKER_BUILDKIT: "1"
|
||||||
FTP_ACCOUNT:
|
FTP_ACCOUNT:
|
||||||
from_secret: zzidc_ftp_account
|
from_secret: zzidc_ftp_account
|
||||||
FTP_PASSWORD:
|
FTP_PASSWORD:
|
||||||
@ -251,14 +237,7 @@ steps:
|
|||||||
🌐 {{ build.link }}
|
🌐 {{ build.link }}
|
||||||
{{/success}}
|
{{/success}}
|
||||||
|
|
||||||
services:
|
|
||||||
- name: docker
|
|
||||||
image: docker:dind
|
|
||||||
privileged: true
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
path: /var/run
|
host:
|
||||||
|
path: /var/run/docker.sock
|
||||||
volumes:
|
|
||||||
- name: dockersock
|
|
||||||
temp: {}
|
|
@ -32,4 +32,4 @@ FROM alpine:latest as upload
|
|||||||
RUN apk add lftp
|
RUN apk add lftp
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=export /app/out ./
|
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'
|
@ -25,6 +25,11 @@ export default function Footer() {
|
|||||||
<div>{` • `}</div>
|
<div>{` • `}</div>
|
||||||
<Link href="/">{siteMetadata.title}</Link>
|
<Link href="/">{siteMetadata.title}</Link>
|
||||||
</div>
|
</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">
|
<div className="mb-8 text-sm text-gray-500 dark:text-gray-400">
|
||||||
<Link
|
<Link
|
||||||
href="https://github.com/timlrx/tailwind-nextjs-starter-blog"
|
href="https://github.com/timlrx/tailwind-nextjs-starter-blog"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
name: Ivan Li
|
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
|
occupation: Web Full Stack Developer
|
||||||
email: master@ivanli.cc
|
email: master@ivanli.cc
|
||||||
github: https://github.com/IvanLi-CN
|
github: https://github.com/IvanLi-CN
|
||||||
|
3163
pnpm-lock.yaml
3163
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user