Skip to content

Commit 66609ba

Browse files
committed
test kubectl rollout brekdown
1 parent 54c8457 commit 66609ba

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
# Configure docker to use the gcloud command-line tool as a credential helper
4848
- run: |-
4949
gcloud auth configure-docker europe-west3-docker.pkg.dev
50-
50+
5151
# Get the GKE credentials so we can deploy to the cluster
5252
- uses: google-github-actions/get-gke-credentials@v0.3.0
5353
with:
@@ -58,7 +58,7 @@ jobs:
5858
# Build the Docker image
5959
- name: Build Image
6060
run: |-
61-
docker build -f Dockerfile.dev --tag europe-west3-docker.pkg.dev/$PROJECT_ID/$REPOSITORY_NAME_DEV/$IMAGE:latest .
61+
docker build -f Dockerfile.prod --tag europe-west3-docker.pkg.dev/$PROJECT_ID/$REPOSITORY_NAME_DEV/$IMAGE:latest .
6262
6363
# Push the Docker image to Google Artifact Registry
6464
- name: Publish Image to Google Artifact Registry

Dockerfile.prod

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# build environment
22
FROM node:18-alpine3.14 as build
3+
4+
# ARG RELEASE_VERSION
5+
# ENV RELEASE_VERSION=${RELEASE_VERSION}
6+
37
WORKDIR /app
48
ENV PATH /app/node_modules/.bin:$PATH
59
COPY package.json ./
@@ -8,7 +12,8 @@ RUN export NODE_OPTIONS=--max-old-space-size=8192
812
RUN npm ci --silent
913
RUN npm install react-scripts@latest -g --silent
1014
COPY . ./
11-
RUN npm run build
15+
RUN npm run build -- --outDir=build
16+
RUN npm run build -- --outDir=build/releases/v0.0.1
1217

1318
# production environment
1419
FROM nginx:stable-alpine

0 commit comments

Comments
 (0)