mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-14 17:02:49 +03:00
458ce8b384
Build configs for preview builds through GKE ## Description ✍️ Moving the docs preview builds from Cloudflare to "websitecloud" Google Cloud Project which is currently handling the staging and production deployments: The preview triggers are expected to be called only on changes to the docs folder PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6999 GitOrigin-RevId: 1699fe7677ebc03b8ce6338394e91d8e848640c3
23 lines
340 B
Docker
23 lines
340 B
Docker
# Used only for preview builds
|
|
|
|
FROM --platform=linux/amd64 node:17-alpine
|
|
|
|
ENV release_mode="staging"
|
|
|
|
ENV BUILD_VERSION="2.0"
|
|
|
|
RUN apk add --update git \
|
|
bash \
|
|
yarn
|
|
|
|
#WORKDIR /app
|
|
WORKDIR /graphql-engine/docs
|
|
|
|
# Bundle app source
|
|
COPY . .
|
|
|
|
RUN yarn
|
|
|
|
RUN yarn build
|
|
|
|
CMD ["yarn", "run", "serve", "-p", "8080", "--host", "0.0.0.0"] |