Compare commits
2 Commits
fe1a62a7b3
...
379bacf023
| Author | SHA1 | Date | |
|---|---|---|---|
| 379bacf023 | |||
| ad2420775e |
14
action.yml
14
action.yml
@@ -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
|
||||
|
||||
9
nginx.conf
Normal file
9
nginx.conf
Normal file
@@ -0,0 +1,9 @@
|
||||
server {
|
||||
listen 80;
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
}
|
||||
2
vue.Dockerfile
Normal file
2
vue.Dockerfile
Normal file
@@ -0,0 +1,2 @@
|
||||
FROM nginx:alpine
|
||||
COPY dist /usr/share/nginx/html
|
||||
Reference in New Issue
Block a user