Skip to content

Commit bf3a025

Browse files
author
微信公众号:储凡
authored
Merge pull request #80 from 142vip/feat/code-test
2 parents 844d2be + df3365a commit bf3a025

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CodeQL
2+
3+
on:
4+
# push:
5+
pull_request:
6+
branches:
7+
- next
8+
schedule:
9+
- cron: "30 7 * * 3"
10+
11+
jobs:
12+
analyze:
13+
name: Analyze
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
20+
# Initializes the CodeQL tools for scanning.
21+
- name: Initialize CodeQL
22+
uses: github/codeql-action/init@v2
23+
with:
24+
queries: +security-extended
25+
# Override language selection by uncommenting this and choosing your languages
26+
# with:
27+
# languages: go, javascript, csharp, python, cpp, java
28+
languages: javascript
29+
30+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
31+
# If this step fails, then you should remove it and run the build manually (see below)
32+
- name: Autobuild
33+
uses: github/codeql-action/autobuild@v2
34+
35+
- name: Perform CodeQL Analysis
36+
uses: github/codeql-action/analyze@v2

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ ARG CONTAINER_BUILD
1414
WORKDIR /apps
1515
COPY . .
1616

17+
RUN echo $CONTAINER_BUILD;
1718

1819
## 基于容器自动构建
1920
RUN if [ "$CONTAINER_BUILD" = "true" ]; then \
@@ -24,6 +25,7 @@ FROM registry.cn-hangzhou.aliyuncs.com/142vip/nginx:1.23.0-alpine
2425
ARG APP_VERSION
2526
LABEL version=$APP_VERSION description="JavaScriptCollection文档合集、博客"
2627
LABEL author="【Github&公众号】:储凡" email="[email protected]"
28+
2729
# 将dist文件中的内容复制到 /usr/share/nginx/html/ 这个目录下面 注意:--from参数
2830
COPY --from=build_base /apps/docs/.vuepress/dist/ /usr/share/nginx/html/
2931
COPY nginx.conf /etc/nginx/

0 commit comments

Comments
 (0)