Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
379bacf023 | ||
|
|
ad2420775e | ||
|
|
fe1a62a7b3 | ||
|
|
bf9f6e5cd5 |
+1
-10
@@ -18,15 +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 echo \"server {\" > /etc/nginx/conf.d/default.conf" >> 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'
|
|
||||||
|
|
||||||
- uses: actions/docker-build-push@main
|
- uses: actions/docker-build-push@main
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
root /usr/share/nginx/html;
|
||||||
|
index index.html;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
try_files $uri $uri/ /index.html;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
FROM nginx:alpine
|
||||||
|
COPY dist /usr/share/nginx/html
|
||||||
Reference in New Issue
Block a user