This repository has been archived by the owner on Jun 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ee87a8c
commit da97ce8
Showing
12 changed files
with
755 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,4 +26,3 @@ tsconfig.json | |
|
||
#git but keep the git commit hash | ||
.git | ||
src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
.DS_Store | ||
node_modules | ||
/dist | ||
|
||
# /dist | ||
# !/dist/index.js | ||
# local env files | ||
.env.local | ||
.env.*.local | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
module.exports = { | ||
plugins: [ | ||
[ | ||
"@semantic-release/commit-analyzer",//此处只导入解析规则 parserOpts | ||
{ | ||
"config": "conventional-changelog-cmyr-config" | ||
} | ||
], | ||
["@semantic-release/release-notes-generator",//此处导入解析和生成规则 parserOpts, writerOpts | ||
{ | ||
config: "conventional-changelog-cmyr-config" | ||
}], | ||
[ | ||
"@semantic-release/changelog", | ||
{ | ||
"changelogFile": "CHANGELOG.md", | ||
"changelogTitle": "# super-search-hub" | ||
} | ||
], | ||
'@semantic-release/github', | ||
[ | ||
"@semantic-release/git", | ||
{ | ||
"assets": [ | ||
"dist", | ||
"CHANGELOG.md", | ||
"README.md", | ||
"package.json", | ||
] | ||
} | ||
] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
language: node_js | ||
node_js: 12 | ||
|
||
script: | ||
- npm run build | ||
|
||
deploy: | ||
provider: script | ||
skip_cleanup: true | ||
on: | ||
branch: master | ||
script: | ||
- npm run release | ||
cache: | ||
directories: | ||
- node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM alpine:3.11 | ||
|
||
WORKDIR /home/app | ||
|
||
ENV NODE_ENV production | ||
ENV NODE_VERSION 12.15.0-r1 | ||
|
||
# 安装nodejs环境 | ||
RUN echo "https://mirrors.aliyun.com/alpine/v3.11/main/" > /etc/apk/repositories \ | ||
&& echo "https://mirrors.aliyun.com/alpine/v3.11/community/" >> /etc/apk/repositories \ | ||
&& apk update \ | ||
&& apk add --no-cache --update "nodejs=${NODE_VERSION}" \ | ||
&& node -v | ||
|
||
COPY package.json .env dist /home/app/ | ||
|
||
EXPOSE 80 | ||
|
||
CMD ["npm", "start"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM alpine:3.11 | ||
|
||
WORKDIR /home/app | ||
|
||
ENV NODE_ENV production | ||
ENV NODE_VERSION 12.15.0-r1 | ||
|
||
# 安装nodejs环境 | ||
RUN echo "https://mirrors.aliyun.com/alpine/v3.11/main/" > /etc/apk/repositories \ | ||
&& echo "https://mirrors.aliyun.com/alpine/v3.11/community/" >> /etc/apk/repositories \ | ||
&& apk update \ | ||
&& apk add --no-cache --update "nodejs=${NODE_VERSION}" "nodejs-npm=${NODE_VERSION}" \ | ||
&& node -v && npm -v && npm config set registry https://registry.npm.taobao.org | ||
|
||
COPY package.json /home/app/ | ||
|
||
RUN npm install --production | ||
|
||
COPY . /home/app | ||
|
||
RUN npm run build | ||
|
||
EXPOSE 80 | ||
|
||
CMD ["npm", "start"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module.exports = { | ||
extends: ['@commitlint/config-conventional'], | ||
rules: { | ||
'type-enum': [2, 'always', [ | ||
'feat', 'fix', 'docs', 'style', 'refactor', 'test', | ||
'chore', 'revert', 'upgrade', 'revert', 'build', 'perf' | ||
]], | ||
'subject-full-stop': [0, 'never'], | ||
'subject-case': [0, 'never'] | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
version: "3" | ||
|
||
services: | ||
super-search-hub: | ||
container_name: super-search-hub-container | ||
build: . | ||
restart: always | ||
ports: | ||
- "80:80" | ||
environment: | ||
NODE_ENV: production | ||
CACHE_TYPE: redis | ||
REDIS_URL: "redis://redis:6379/" | ||
REDIS_HOST: "redis" | ||
REDIS_PORT: 6379 | ||
depends_on: | ||
- redis | ||
redis: | ||
image: redis:alpine | ||
restart: always | ||
volumes: | ||
- redis-data:/data | ||
volumes: | ||
redis-data: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
version: "3" | ||
|
||
services: | ||
super-search-hub: | ||
image: caomeiyouren/super-search-hub | ||
restart: always | ||
ports: | ||
- "80:80" | ||
environment: | ||
NODE_ENV: production | ||
CACHE_TYPE: redis | ||
REDIS_URL: "redis://redis:6379/" | ||
REDIS_HOST: "redis" | ||
REDIS_PORT: 6379 | ||
depends_on: | ||
- redis | ||
redis: | ||
image: redis:alpine | ||
restart: always | ||
volumes: | ||
- redis-data:/data | ||
volumes: | ||
redis-data: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters