Jelajahi Sumber

test build change

Stefan McShane 2 tahun lalu
induk
melakukan
028b5cd9d7

+ 1 - 1
.github/workflows/porter_stack_porter-ui.yml

@@ -22,7 +22,7 @@ jobs:
 
   porter-deploy:
     runs-on: ubuntu-latest
-    needs: [build-go, build-npm]
+    needs: [build-go]
     steps:
       - name: Checkout code
         uses: actions/checkout@v3

+ 3 - 2
zarf/docker/Dockerfile.production

@@ -1,4 +1,4 @@
-FROM node:16
+FROM node:16 as nodebuild
 
 WORKDIR /app
 COPY dashboard .
@@ -13,5 +13,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates
 WORKDIR /porter
 COPY bin/app /porter/
 COPY bin/migrate /porter/
-COPY build/ /porter/static
+# COPY build/ /porter/static
+COPY --from=nodebuild /app/dashboard/build/ /porter/static
 RUN chmod +x /porter/app /porter/migrate