6 Commits

Author SHA1 Message Date
379bacf023 fix ci 2026-04-28 19:48:40 +08:00
ad2420775e fix ci 2026-04-28 19:48:26 +08:00
fe1a62a7b3 fix ci 2026-04-28 19:37:33 +08:00
bf9f6e5cd5 fix ci 2026-04-28 19:15:10 +08:00
22381f3034 fix 301 2026-04-28 19:06:49 +08:00
16095bdec5 no hash support 2026-04-28 18:52:33 +08:00
3 changed files with 13 additions and 6 deletions

View File

@@ -10,7 +10,7 @@ runs:
args: | args: |
-c "export https_proxy=http://100.100.13.14:8118 && \ -c "export https_proxy=http://100.100.13.14:8118 && \
export http_proxy=http://100.100.13.14:8118 && \ export http_proxy=http://100.100.13.14:8118 && \
npm pkg set version=${{ github.ref_name }} npm pkg set version=${{ github.ref_name }} && \
npm ci && \ npm ci && \
npm run build-only" npm run build-only"
@@ -18,10 +18,6 @@ runs:
with: with:
entrypoint: "/bin/bash" entrypoint: "/bin/bash"
args: | args: |
-c 'echo "FROM nginx:alpine" > Dockerfile && \ -c 'cp "${{ github.action_path }}/nginx.conf" ./ && cp "${{ github.action_path }}/vue.Dockerfile" ./Dockerfile'
echo "COPY dist /usr/share/nginx/html" >> Dockerfile && \
echo "WORKDIR /usr/share/nginx/html/" >> Dockerfile && \
echo "已经构建完DOCKERFILE了" && \
cat Dockerfile'
- uses: actions/docker-build-push@main - uses: actions/docker-build-push@main

9
nginx.conf Normal file
View File

@@ -0,0 +1,9 @@
server {
listen 80;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
}

2
vue.Dockerfile Normal file
View File

@@ -0,0 +1,2 @@
FROM nginx:alpine
COPY dist /usr/share/nginx/html