File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 :
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
Original file line number Diff line number Diff line change 11# build environment
22FROM node:18-alpine3.14 as build
3+
4+ # ARG RELEASE_VERSION
5+ # ENV RELEASE_VERSION=${RELEASE_VERSION}
6+
37WORKDIR /app
48ENV PATH /app/node_modules/.bin:$PATH
59COPY package.json ./
@@ -8,7 +12,8 @@ RUN export NODE_OPTIONS=--max-old-space-size=8192
812RUN npm ci --silent
913RUN npm install react-scripts@latest -g --silent
1014COPY . ./
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
1419FROM nginx:stable-alpine
You can’t perform that action at this time.
0 commit comments