diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 7aaa4dc..0e92723 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -2,8 +2,8 @@ name: Deploy on: push: - branches: - - master +# branches: +# - master jobs: build-and-push: @@ -24,10 +24,7 @@ jobs: password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build docker images - run: docker compose build - - - name: Push docker images - run: docker compose push backend frontend + run: docker compose build --push deploy: needs: build-and-push diff --git a/frontend/Dockerfile b/frontend/Dockerfile index c876095..f1f086f 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,4 +1,4 @@ -FROM node:20.10.0 +FROM node:18.18.0 WORKDIR /run @@ -6,4 +6,4 @@ COPY package*.json . RUN npm install COPY . . -RUN npm run build \ No newline at end of file +CMD npm run build \ No newline at end of file