From 562d43208047e7a55fc2614812d787d75879849a Mon Sep 17 00:00:00 2001 From: Xeovalyte Date: Mon, 1 May 2023 20:02:39 +0200 Subject: [PATCH] fixed ci --- .gitea/workflows/ci.yml | 3 +++ Dockerfile | 5 +---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index e0e9a16..0d92d4f 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -14,6 +14,7 @@ jobs: uses: actions/setup-node@v3 with: node-version: 18 + - run: cd frontend - run: npm install - run: npm run build @@ -26,6 +27,8 @@ jobs: username: ${{ secrets.USERNAME }} password: ${{ secrets.PASSWORD }} + - run: cd .. + - run: docker buildx build -t gitea.xeovalyte.dev/xeovalyte/wrbapp:latest-arm --load --platform=linux/arm64 . - run: docker push gitea.xeovalyte.dev/xeovalyte/wrbapp:latest-arm diff --git a/Dockerfile b/Dockerfile index 5944611..12d2a3f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,10 +2,7 @@ FROM node:18 WORKDIR /usr/src/app -COPY ./frontend . - -RUN npm install -RUN npm run build +COPY ./frontend/output . EXPOSE 3000