sh start script
This commit is contained in:
parent
1cae67023f
commit
d53bae9537
4 changed files with 23 additions and 6 deletions
|
@ -38,6 +38,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: unlighthouse-reports
|
name: unlighthouse-reports
|
||||||
path: unlighthouse-reports/
|
path: unlighthouse-reports/
|
||||||
|
- name: Upload start-script
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: start
|
||||||
|
path: start.sh
|
||||||
- name: Upload Dockerfile
|
- name: Upload Dockerfile
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
@ -53,6 +58,10 @@ jobs:
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: dockerfile
|
name: dockerfile
|
||||||
|
- name: Downloading start script
|
||||||
|
uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: start
|
||||||
- name: Downloading static site artifacts
|
- name: Downloading static site artifacts
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -10,12 +10,14 @@ RUN npm run build
|
||||||
RUN rm ./dist/.original.favicon.ico
|
RUN rm ./dist/.original.favicon.ico
|
||||||
|
|
||||||
FROM forgejo.neshweb.net/ci-docker-images/website-serve:2 AS runtime
|
FROM forgejo.neshweb.net/ci-docker-images/website-serve:2 AS runtime
|
||||||
ARG version
|
ARG version=0.0.1
|
||||||
ENV version=0.0.1
|
ENV version=${version}
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
|
|
||||||
COPY --from=build /app/dist /public
|
COPY --from=build /app/dist /public
|
||||||
COPY --from=build /app/serve.json /public/serve.json
|
COPY --from=build /app/serve.json /public/serve.json
|
||||||
|
COPY --from=build /app/start.sh /
|
||||||
|
RUN chmod +x start.sh
|
||||||
|
|
||||||
EXPOSE 8081
|
EXPOSE 8081
|
||||||
CMD echo $version; serve --listen 8081 --no-clipboard /public
|
CMD ./start.sh
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
FROM forgejo.neshweb.net/ci-docker-images/website-serve:2 AS runtime
|
FROM forgejo.neshweb.net/ci-docker-images/website-serve:2 AS runtime
|
||||||
|
|
||||||
ARG version
|
ARG version=0.0.1
|
||||||
ENV version=0.0.1
|
ENV version=${version}
|
||||||
|
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
ADD reports /public
|
ADD reports /public
|
||||||
|
ADD start.sh /
|
||||||
|
RUN chmod +x /start.sh
|
||||||
|
|
||||||
EXPOSE 8081
|
EXPOSE 8081
|
||||||
CMD echo $version; serve --listen 8081 --no-clipboard /public
|
CMD ./start.sh
|
||||||
|
|
4
start.sh
Normal file
4
start.sh
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
echo "Website version: ${version}"
|
||||||
|
echo "powered by @Firq"
|
||||||
|
serve --listen 8081 --no-clipboard /public
|
Loading…
Add table
Add a link
Reference in a new issue