fix ci
This commit is contained in:
14
action.yml
14
action.yml
@@ -18,18 +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 "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'
|
|
||||||
|
|
||||||
- uses: actions/docker-build-push@main
|
- uses: actions/docker-build-push@main
|
||||||
|
|||||||
Reference in New Issue
Block a user