This commit is contained in:
2026-04-28 19:48:26 +08:00
parent fe1a62a7b3
commit ad2420775e

View File

@@ -18,18 +18,6 @@ runs:
with:
entrypoint: "/bin/bash"
args: |
-c 'echo "FROM nginx:alpine" > Dockerfile && \
echo "COPY dist /usr/share/nginx/html" >> Dockerfile && \
echo "RUN cat > /etc/nginx/conf.d/default.conf <<\"EOF\"" >> 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'
-c 'cp "${{ github.action_path }}/nginx.conf" ./ && cp "${{ github.action_path }}/vue.Dockerfile" ./Dockerfile'
- uses: actions/docker-build-push@main