From cda513c13418e0f6ce3b0dd1ee969e8edeb32f86 Mon Sep 17 00:00:00 2001 From: Shamil <66209982+shamilsan@users.noreply.github.com> Date: Thu, 9 Nov 2023 20:24:40 +0400 Subject: [PATCH] ci: fix Docker image --- .github/workflows/docker-image.yml | 3 ++- Dockerfile | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index f3701df..e933ca9 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -3,6 +3,7 @@ name: Build and Deploy Vara Wiki to k8s on: push: branches: ['master'] + pull_request: # FIXME: Remove! env: REGISTRY: ghcr.io @@ -44,7 +45,7 @@ jobs: with: push: true tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest - + deploy-to-k8s: needs: build-and-push-vara-wiki-image runs-on: ubuntu-latest diff --git a/Dockerfile b/Dockerfile index 14b3c80..7898ab8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:16-alpine AS builder +FROM node:18-alpine AS builder WORKDIR /vara-wiki COPY . /vara-wiki RUN npm install --force