Skip to content

Commit

Permalink
refactor(ci): Update depker
Browse files Browse the repository at this point in the history
  • Loading branch information
syfxlin committed Jan 13, 2024
1 parent 117eb1a commit 6939ac1
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ jobs:
uses: denoland/setup-deno@v1
- name: Setup Depker
run: |
deno install -A https://raw.githubusercontent.com/syfxlin/depker/master/depker.ts --root /usr/local --name depker
wget -O /usr/local/bin/depker https://github.com/syfxlin/depker/releases/latest/download/depker.linux.amd64
chmod +x /usr/local/bin/depker
- name: Deploy to docker
run: |
echo "$SECRETS_ENV" > .env
depker --version
depker service deploy
env:
TZ: Asia/Shanghai
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
REMOTE_CA: ${{ secrets.REMOTE_CA }}
REMOTE_CERT: ${{ secrets.REMOTE_CERT }}
REMOTE_KEY: ${{ secrets.REMOTE_KEY }}
SECRETS_ENV: ${{ secrets.SECRETS_ENV }}
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -251,3 +251,12 @@ next-env.d.ts
# content
/public/sw.js*
/public/workbox-*.js*

### VisualStudioCode template
.vscode/*

# Local History for Visual Studio Code
.history/

# Built Visual Studio Code Extensions
*.vsix
12 changes: 12 additions & 0 deletions depker.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@ app.service(
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",
},
}),
);

Expand Down

0 comments on commit 6939ac1

Please sign in to comment.