Compare commits
2 Commits
3.0
...
3.1-nohash
| Author | SHA1 | Date | |
|---|---|---|---|
| 22381f3034 | |||
| 16095bdec5 |
11
action.yml
11
action.yml
@@ -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"
|
||||||
|
|
||||||
@@ -20,8 +20,13 @@ runs:
|
|||||||
args: |
|
args: |
|
||||||
-c 'echo "FROM nginx:alpine" > Dockerfile && \
|
-c 'echo "FROM nginx:alpine" > Dockerfile && \
|
||||||
echo "COPY dist /usr/share/nginx/html" >> Dockerfile && \
|
echo "COPY dist /usr/share/nginx/html" >> Dockerfile && \
|
||||||
echo "WORKDIR /usr/share/nginx/html/" >> Dockerfile && \
|
echo "RUN echo \"server {\" > /etc/nginx/conf.d/default.conf" >> Dockerfile && \
|
||||||
echo "已经构建完DOCKERFILE了" && \
|
echo "RUN echo \" listen 80;\" >> /etc/nginx/conf.d/default.conf" >> Dockerfile && \
|
||||||
|
echo "RUN echo \" index index.html;\" >> /etc/nginx/conf.d/default.conf" >> Dockerfile && \
|
||||||
|
echo "RUN echo \" location / {\" >> /etc/nginx/conf.d/default.conf" >> Dockerfile && \
|
||||||
|
echo "RUN echo \" try_files \$uri \$uri/ /index.html;\" >> /etc/nginx/conf.d/default.conf" >> Dockerfile && \
|
||||||
|
echo "RUN echo \" }\" >> /etc/nginx/conf.d/default.conf" >> Dockerfile && \
|
||||||
|
echo "RUN echo \"}\" >> /etc/nginx/conf.d/default.conf" >> Dockerfile && \
|
||||||
cat Dockerfile'
|
cat Dockerfile'
|
||||||
|
|
||||||
- uses: actions/docker-build-push@main
|
- uses: actions/docker-build-push@main
|
||||||
|
|||||||
Reference in New Issue
Block a user