Skip to content

Commit

Permalink
fix(depker): Update depker config
Browse files Browse the repository at this point in the history
  • Loading branch information
syfxlin committed Oct 16, 2024
1 parent 1cf42a2 commit 52c27ee
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Deploy to docker
run: |
depker --version
depker service deploy
depker deploy
env:
TZ: Asia/Shanghai
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
Expand Down
30 changes: 13 additions & 17 deletions depker.config.ts
Original file line number Diff line number Diff line change
@@ -1,28 +1,24 @@
import { depker, docker, nextjs } from "https://raw.githubusercontent.com/syfxlin/depker/master/mod.ts";

const app = depker();
depker.master(docker({ type: "https" }));
depker.runner(docker({ type: "local" }));

app.master(docker({ type: "https" }));
app.runner(docker({ type: "local" }));

app.service(
depker.use(
nextjs({
name: "blog",
domain: "blog.ixk.me",
tls: true,
secrets: {
NEXT_PUBLIC_COLINE_LANGUAGE: "@BLOG_COLINE_LANGUAGE",
NEXT_PUBLIC_COLINE_GOOGLE_ANALYTICS: "@BLOG_COLINE_GOOGLE_ANALYTICS",
NEXT_PUBLIC_COLINE_ARTALK_SITE_NAME: "@BLOG_COLINE_ARTALK_SITE_NAME",
NEXT_PUBLIC_COLINE_ARTALK_SERVER_URL: "@BLOG_COLINE_ARTALK_SERVER_URL",
NEXT_PUBLIC_COLINE_GITHUB_REPO: "@BLOG_COLINE_GITHUB_REPO",
COLINE_GITHUB_TOKEN: "@BLOG_COLINE_GITHUB_TOKEN",
KEYSTATIC_SECRET: "@BLOG_KEYSTATIC_SECRET",
KEYSTATIC_GITHUB_CLIENT_ID: "@BLOG_KEYSTATIC_GITHUB_CLIENT_ID",
KEYSTATIC_GITHUB_CLIENT_SECRET: "@BLOG_KEYSTATIC_GITHUB_CLIENT_SECRET",
NEXT_PUBLIC_KEYSTATIC_GITHUB_APP_SLUG: "@BLOG_KEYSTATIC_GITHUB_APP_SLUG",
NEXT_PUBLIC_COLINE_LANGUAGE: "@NEXT_PUBLIC_COLINE_LANGUAGE",
NEXT_PUBLIC_COLINE_GOOGLE_ANALYTICS: "@NEXT_PUBLIC_COLINE_GOOGLE_ANALYTICS",
NEXT_PUBLIC_COLINE_ARTALK_SITE_NAME: "@NEXT_PUBLIC_COLINE_ARTALK_SITE_NAME",
NEXT_PUBLIC_COLINE_ARTALK_SERVER_URL: "@NEXT_PUBLIC_COLINE_ARTALK_SERVER_URL",
NEXT_PUBLIC_COLINE_GITHUB_REPO: "@NEXT_PUBLIC_COLINE_GITHUB_REPO",
COLINE_GITHUB_TOKEN: "@COLINE_GITHUB_TOKEN",
KEYSTATIC_SECRET: "@KEYSTATIC_SECRET",
KEYSTATIC_GITHUB_CLIENT_ID: "@KEYSTATIC_GITHUB_CLIENT_ID",
KEYSTATIC_GITHUB_CLIENT_SECRET: "@KEYSTATIC_GITHUB_CLIENT_SECRET",
NEXT_PUBLIC_KEYSTATIC_GITHUB_APP_SLUG: "@NEXT_PUBLIC_KEYSTATIC_GITHUB_APP_SLUG",
},
}),
);

export default app;

0 comments on commit 52c27ee

Please sign in to comment.