diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 11a1945..6a801ba 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -80,24 +80,6 @@ jobs: echo ______ frontend/spa.html ______ cat frontend/spa.html - - name: build - env: - FORCE_COLOR: "true" - run: | - yarn build - - #- name: build ssr - # env: - # FORCE_COLOR: "true" - # run: | - # yarn build:server - - - name: build legacy - env: - FORCE_COLOR: "true" - run: | - yarn build:legacy - #- name: staging api testtest # if: github.ref == 'refs/heads/dev' # run: | @@ -130,6 +112,24 @@ jobs: -v ${{ github.workspace }}/lighthouse-reports:/lighthouse-reports \ drillster/drone-email /lighthouse-reports/lighthouse-report.json + - name: build + env: + FORCE_COLOR: "true" + run: | + yarn build + + #- name: build ssr + # env: + # FORCE_COLOR: "true" + # run: | + # yarn build:server + + - name: build legacy + env: + FORCE_COLOR: "true" + run: | + yarn build:legacy + - name: deploy if: github.ref == 'refs/heads/master' env: diff --git a/liveserver-dockerfile b/liveserver-dockerfile deleted file mode 100644 index 0778d46..0000000 --- a/liveserver-dockerfile +++ /dev/null @@ -1,21 +0,0 @@ -# Use an official Node runtime as a parent image -FROM node:20 - -# Set the working directory in the container -WORKDIR /usr/src/app - -# Copy the package.json and yarn.lock (or package-lock.json) -COPY package*.json ./ -COPY yarn.lock ./ - -# Install any needed packages specified in package.json -RUN yarn install - -# Bundle your app's source code inside the Docker container -COPY . . - -# Your app binds to port 80 so you'll use the EXPOSE instruction to have it mapped by the docker daemon -EXPOSE 80 - -# Define the command to run your app using CMD which defines your runtime -CMD ["yarn", "run", "--", "live-server", "--no-browser", "--port=80", "--ignore='*'", "--entry-file=spa.html", "--no-css-inject", "--proxy=/api:http://tibi-server:8080/api/v1/_/einfo_test", "frontend"] \ No newline at end of file