Compare commits
4 Commits
3.0
...
fe1a62a7b3
| Author | SHA1 | Date | |
|---|---|---|---|
| fe1a62a7b3 | |||
| bf9f6e5cd5 | |||
| 22381f3034 | |||
| 16095bdec5 |
14
action.yml
14
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,16 @@ 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 cat > /etc/nginx/conf.d/default.conf <<\"EOF\"" >> Dockerfile && \
|
||||||
echo "已经构建完DOCKERFILE了" && \
|
echo "server {" >> Dockerfile && \
|
||||||
|
echo " listen 80;" >> Dockerfile && \
|
||||||
|
echo " root /usr/share/nginx/html;" >> Dockerfile && \
|
||||||
|
echo " index index.html;" >> Dockerfile && \
|
||||||
|
echo " location / {" >> Dockerfile && \
|
||||||
|
echo " try_files $$uri $$uri/ /index.html;" >> Dockerfile && \
|
||||||
|
echo " }" >> Dockerfile && \
|
||||||
|
echo "}" >> Dockerfile && \
|
||||||
|
echo "EOF" >> Dockerfile && \
|
||||||
cat Dockerfile'
|
cat Dockerfile'
|
||||||
|
|
||||||
- uses: actions/docker-build-push@main
|
- uses: actions/docker-build-push@main
|
||||||
|
|||||||
Reference in New Issue
Block a user