Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dop 4334 #998

Closed
wants to merge 69 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
ae58b62
[DOP-4334]: Add support for nextGenDeploy
branberry Feb 1, 2024
3f3ab0b
[DOP-4334]: Remove some unused stuff
branberry Feb 1, 2024
0689a7c
[DOP-4334]: Add new endpoint for test deploys
branberry Feb 1, 2024
42f04ec
[DOP-4334]: Update next-gen-deploy
branberry Feb 9, 2024
8c513af
Merge branch 'main' into DOP-4334
branberry Feb 9, 2024
2eecc62
Merge branch 'main' into DOP-4334
branberry Feb 12, 2024
240a0c8
[DOP-4334]: Push to preprd
branberry Feb 12, 2024
4d6cf2b
[DOP-4334]: Add if else statement
branberry Feb 12, 2024
c2383f9
[DOP-4334]: Update logging
branberry Feb 12, 2024
55d21d1
[DOP-4334]: Some minor clean up
branberry Feb 14, 2024
b044f1b
[DOP-4334]: Add error text to output as well
branberry Feb 14, 2024
95bbe24
[DOP-4334]: Remove dryrun
branberry Feb 14, 2024
8b77681
[DOP-4334]: Add repoName and repoDir to redirects
branberry Feb 14, 2024
d26a7c6
[DOP-4334]: Nextgenbuild
branberry Feb 15, 2024
8671907
[DOP-4334]: Use dotcomstg
branberry Feb 20, 2024
3403c8d
[DOP-4334]: Update comment pr action
branberry Feb 20, 2024
a2866ce
[DOP-4334]: Add test deploy endpoint
branberry Feb 20, 2024
e84c5b8
Merge branch 'main' into DOP-4334
branberry Feb 20, 2024
40e118c
[DOP-4334]: Start adding logic to create test job
branberry Feb 21, 2024
9ca45d5
[DOP-4334]: Cache node_modules first
branberry Feb 21, 2024
75f3d6b
[DOP-4334]: Add more logging to find where stuff stops working
branberry Feb 21, 2024
14ec5f5
[DOP-4334]: Add more logging to find where stuff stops working
branberry Feb 21, 2024
3f2175b
[DOP-4334]: Convert github push to production deploy for testing purp…
branberry Feb 21, 2024
c5e6b7a
[DOP-4334]: Add dummy workflow to test
branberry Feb 21, 2024
bbee0e7
[DOP-4334]: Use restore
branberry Feb 21, 2024
91e5f7d
[DOP-4334]: Update restore
branberry Feb 21, 2024
890f590
[DOP-4334]: Update dummy test
branberry Feb 21, 2024
8821b38
[DOP-4334]: Update job validator to run production deploy if not 10ge…
branberry Feb 22, 2024
f6a51d6
[DOP-4334]: Use setup buildx action
branberry Feb 22, 2024
1b890d1
[DOP-4334]: Add buildkit flag
branberry Feb 22, 2024
47e088f
[DOP-4334]: Update logic
branberry Feb 22, 2024
2d34eee
[DOP-4334]: Add caching to docker builds hopefully
branberry Feb 22, 2024
727d7b3
[DOP-4334]: Add to env var and use localbuild image for basis to cache
branberry Feb 22, 2024
657f1ae
[DOP-4334]: Resolve merge conflicts
branberry Feb 22, 2024
68969ea
[DOP-4334]: Update npmrc?
branberry Feb 22, 2024
e2c8b4f
[DOP-4334]: Add email and auth to env
branberry Feb 22, 2024
f88b314
[DOP-4334]: Update npmrc?
branberry Feb 22, 2024
03f6b83
[DOP-4334]: Remove registry
branberry Feb 22, 2024
d077d5e
[DOP-4334]: Remove any reference to npmrc
branberry Feb 22, 2024
7f6648c
[DOP-4334]: Use correct versions
branberry Feb 22, 2024
759b1e1
[DOP-4334]: No caching
branberry Feb 22, 2024
405bc50
[DOP-4334]: Comment out to test
branberry Feb 22, 2024
cda7835
[DOP-4334]: Remove branch
branberry Feb 23, 2024
daabb8e
Merge branch 'main' into DOP-4334
branberry Feb 23, 2024
b044903
[DOP-4334]: Add env back
branberry Feb 23, 2024
503a857
[DOP-4334]: Add setup buildkit action
branberry Feb 23, 2024
65ffee1
[DOP-4334]: Push down setup node?
branberry Feb 23, 2024
17c3bb5
[DOP-4334]: Use build args properly
branberry Feb 23, 2024
83610b0
[DOP-4334]: Use outputs
branberry Feb 23, 2024
e7967ab
[DOP-4334]: Use cdk again
branberry Feb 24, 2024
3c90411
[DOP-4334]: hotswap
branberry Feb 26, 2024
400f9d1
[DOP-4334]: Update aws cdk
branberry Feb 26, 2024
51c0e72
[DOP-4334]: Use gha cache
branberry Feb 26, 2024
3d90bfc
[DOP-4334]: deploy to preprod
branberry Feb 26, 2024
dc311ef
[DOP-4334]: Update ondemand app
branberry Feb 26, 2024
035096d
[DOP-4334]: Up memory
branberry Feb 27, 2024
f2e94f5
[DOP-4334]: Up memory
branberry Feb 27, 2024
e45ff6d
[DOP-4334]: Add cwd to mut-redirects
branberry Feb 27, 2024
92e2bdb
[DOP-4334]: Add on closed
branberry Feb 27, 2024
1184ac0
[DOP-4334]: Add metrics to commands
branberry Feb 28, 2024
f52fff1
[DOP-4334]: Add time
branberry Feb 28, 2024
b9456fd
[DOP-4334]: Increase ephemeral storage
branberry Feb 28, 2024
a52f2e6
[DOP-4334]: Increase ephemeral storage
branberry Feb 28, 2024
f5dabf5
[DOP-4334]: Increase ephemeral storage
branberry Feb 28, 2024
d664a82
[DOP-4334]: DOuble memory again...
branberry Feb 28, 2024
abcede1
[DOP-4334]: Double cpu
branberry Feb 28, 2024
6faabe9
[DOP-4334]: undo hotswap
branberry Feb 29, 2024
9f08902
[DOP-4334]: Add new build commands
branberry Feb 29, 2024
7fcd362
[DOP-4334]: Update memory
branberry Feb 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/clean-feature-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ on:
- closed

name: Cleanup Feature Branch Infrastructure
jobs:
jobs:
destroy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
Expand All @@ -25,11 +25,11 @@ jobs:
run: |
cd cdk-infra/
npm ci
npm run cdk destroy -- -c customFeatureName=enhancedApp-stg-${{github.head_ref}} --force \
auto-builder-stack-enhancedApp-stg-${{github.head_ref}}-worker \
auto-builder-stack-enhancedApp-stg-${{github.head_ref}}-queues \
auto-builder-stack-enhancedApp-stg-${{github.head_ref}}-webhooks
npm run cdk destroy -- -c customFeatureName=enhancedApp-dotcomstg-${{github.head_ref}} --force \
auto-builder-stack-enhancedApp-dotcomstg-${{github.head_ref}}-worker \
auto-builder-stack-enhancedApp-dotcomstg-${{github.head_ref}}-queues \
auto-builder-stack-enhancedApp-dotcomstg-${{github.head_ref}}-webhooks
- name: Delete cache
run: gh cache delete ${{github.head_ref}}
env:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25 changes: 16 additions & 9 deletions .github/workflows/deploy-feature-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,30 @@ jobs:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-2
- name: Deploy Feature Branch Infrastructure
- name: Install node_modules
run: |
npm ci
cd cdk-infra/
npm ci
npm run deploy:feature:stack -- -c isFeatureBranch=true -c env=stg -c customFeatureName=enhancedApp-stg-${{github.head_ref}} auto-builder-stack-enhancedApp-stg-${{github.head_ref}}-queues
npm run deploy:feature:stack -- -c isFeatureBranch=true -c env=stg -c customFeatureName=enhancedApp-stg-${{github.head_ref}} auto-builder-stack-enhancedApp-stg-${{github.head_ref}}-worker
npm run deploy:feature:stack -- -c isFeatureBranch=true -c env=stg -c customFeatureName=enhancedApp-stg-${{github.head_ref}} auto-builder-stack-enhancedApp-stg-${{github.head_ref}}-webhooks --outputs-file outputs.json
- name: Get Webhook URL
uses: mongodb/docs-worker-actions/comment-pr@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Cache root node_modules
id: cache-root
uses: actions/cache@v3
uses: actions/cache/save@v4
with:
path: |
node_modules
cdk-infra/node_modules
key: ${{ github.head_ref }}

- name: Deploy Feature Branch Infrastructure
run: |
npm ci
cd cdk-infra/
npm ci
npm run deploy:feature:stack -- -c isFeatureBranch=true -c env=dotcomstg -c customFeatureName=enhancedApp-dotcomstg-${{github.head_ref}} auto-builder-stack-enhancedApp-dotcomstg-${{github.head_ref}}-queues
npm run deploy:feature:stack -- -c isFeatureBranch=true -c env=dotcomstg -c customFeatureName=enhancedApp-dotcomstg-${{github.head_ref}} auto-builder-stack-enhancedApp-dotcomstg-${{github.head_ref}}-worker
npm run deploy:feature:stack -- -c isFeatureBranch=true -c env=dotcomstg -c customFeatureName=enhancedApp-dotcomstg-${{github.head_ref}} auto-builder-stack-enhancedApp-dotcomstg-${{github.head_ref}}-webhooks --outputs-file outputs.json
- name: Get Webhook URL
uses: mongodb/docs-worker-actions/comment-pr@DOP-4334
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
STAGE: dotcomstg
4 changes: 2 additions & 2 deletions .github/workflows/deploy-stg-ecs.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
on:
push:
branches:
- "main"
- "integration"
- 'main'
- 'integration'
concurrency:
group: environment-stg-${{ github.ref }}
cancel-in-progress: true
Expand Down
30 changes: 23 additions & 7 deletions .github/workflows/update-feature-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- synchronize

concurrency:
group: environment-stg-feature-${{ github.ref }}
group: environment-dotcomstg-feature-${{ github.ref }}
cancel-in-progress: true
name: Update Feature Branch Infrastructure
jobs:
Expand Down Expand Up @@ -34,7 +34,7 @@ jobs:
npm ci
- name: Cache root node_modules
id: cache-root
uses: actions/cache@v3
uses: actions/cache/save@v4
with:
path: |
node_modules
Expand All @@ -54,7 +54,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: '18.x'
- uses: actions/cache/restore@v3
- uses: actions/cache/restore@v4
id: cache-restore
with:
path: |
Expand All @@ -73,12 +73,16 @@ jobs:
if: steps.filter.outputs.webhooks == 'true'
run: |
cd cdk-infra/
npm run deploy:feature:stack -- -c isFeatureBranch=true -c env=stg -c customFeatureName=enhancedApp-stg-${{github.head_ref}} \
auto-builder-stack-enhancedApp-stg-${{github.head_ref}}-webhooks
npm run deploy:feature:stack -- --hotswap -c isFeatureBranch=true -c env=dotcomstg -c customFeatureName=enhancedApp-dotcomstg-${{github.head_ref}} \
auto-builder-stack-enhancedApp-dotcomstg-${{github.head_ref}}-webhooks
build-worker:
needs: prep-build
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
version: latest
- uses: actions/checkout@v4
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
Expand All @@ -105,9 +109,21 @@ jobs:
- 'cdk-infra/lib/constructs/worker/**'
- 'Dockerfile'
- 'modules/**'
# - uses: docker/build-push-action@v5
# if: steps.filter.outputs.worker == 'true'
# name: build Docker image
# with:
# context: .
# tags: autobuilder/enhanced:latest
# build-args: |
# NPM_EMAIL=${{ secrets.NPM_EMAIL }}
# NPM_BASE_64_AUTH=${{ secrets.NPM_BASE64_AUTH }}
# cache-from: type=gha,ref=autobuilder/enhanced:latest
# cache-to: type=gha,mode=max
# outputs: type=tar,dest=cdk-infra/image.tar.gz
- name: Update Worker Stack
if: steps.filter.outputs.worker == 'true'
run: |
cd cdk-infra/
npm run deploy:feature:stack -- -c isFeatureBranch=true -c env=stg -c customFeatureName=enhancedApp-stg-${{github.head_ref}} \
auto-builder-stack-enhancedApp-stg-${{github.head_ref}}-worker
npm run deploy:feature:stack -- -c isFeatureBranch=true -c env=dotcomstg -c customFeatureName=enhancedApp-dotcomstg-${{github.head_ref}} \
auto-builder-stack-enhancedApp-dotcomstg-${{github.head_ref}}-worker
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ out
local.json
globalConfig.json
.serverless
dist
dist
onDemandApp.js
*.js.map
1 change: 0 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"type": "node",
"request": "attach",
"port": 9229,
"address": "localhost",
"localRoot": "${workspaceFolder}",
"remoteRoot": "/home/docsworker-xlarge",
"autoAttachChildProcesses": false,
Expand Down
122 changes: 63 additions & 59 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,41 +1,23 @@
# Build the Typescript app
FROM node:18.16.0-alpine as ts-compiler
WORKDIR /home/docsworker-xlarge
COPY config config/
COPY package*.json ./
COPY tsconfig*.json ./
RUN npm ci --legacy-peer-deps
COPY . ./
RUN npm run build

# install persistence module
RUN cd ./modules/persistence \
&& npm ci --legacy-peer-deps \
&& npm run build

# Build modules
# OAS Page Builder
RUN cd ./modules/oas-page-builder \
&& npm ci --legacy-peer-deps \
&& npm run build

# where repo work will happen
FROM ubuntu:20.04
ARG WORK_DIRECTORY=/home/docsworker-xlarge
FROM ubuntu:20.04 as initial

ARG SNOOTY_PARSER_VERSION=0.16.1
ARG SNOOTY_FRONTEND_VERSION=0.16.3
ARG MUT_VERSION=0.11.1
ARG REDOC_CLI_VERSION=1.2.3
ARG NPM_BASE_64_AUTH
ARG NPM_EMAIL
ARG WORK_DIRECTORY=/home/docsworker-xlarge

ENV NPM_BASE_64_AUTH=${NPM_BASE_64_AUTH}
ENV NPM_EMAIL=${NPM_EMAIL}
ENV DOCKER_BUILDKIT=1
ENV DEBIAN_FRONTEND=noninteractive

WORKDIR ${WORK_DIRECTORY}

# helper libraries for docs builds
RUN apt-get update && apt-get install -y vim git unzip rsync curl


ENV PATH="${PATH}:/opt/snooty:/opt/mut:/home/docsworker-xlarge/.local/bin"
RUN apt-get update && apt-get install -y vim git unzip zip rsync time

# get node 18
# https://gist.github.com/RinatMullayanov/89687a102e696b1d4cab
Expand All @@ -44,9 +26,6 @@ RUN curl --location https://deb.nodesource.com/setup_18.x | bash -
RUN apt-get install --yes nodejs
RUN apt-get install --yes build-essential

# use npm 8.*
RUN npm install -g npm@8

# install snooty parser
RUN curl -L -o snooty-parser.zip https://github.com/mongodb/snooty-parser/releases/download/v${SNOOTY_PARSER_VERSION}/snooty-v${SNOOTY_PARSER_VERSION}-linux_x86_64.zip \
&& unzip -d /opt/ snooty-parser.zip
Expand All @@ -55,56 +34,81 @@ RUN curl -L -o snooty-parser.zip https://github.com/mongodb/snooty-parser/releas
RUN curl -L -o mut.zip https://github.com/mongodb/mut/releases/download/v${MUT_VERSION}/mut-v${MUT_VERSION}-linux_x86_64.zip \
&& unzip -d /opt/ mut.zip


ENV PATH="${PATH}:/opt/snooty:/opt/mut:/${WORK_DIRECTORY}/.local/bin"

# setup user and root directory
RUN useradd -ms /bin/bash docsworker-xlarge
RUN chmod 755 -R ${WORK_DIRECTORY}
RUN chown -Rv docsworker-xlarge ${WORK_DIRECTORY}
USER docsworker-xlarge

WORKDIR ${WORK_DIRECTORY}

# get shared.mk
RUN curl https://raw.githubusercontent.com/mongodb/docs-worker-pool/meta/makefiles/shared.mk -o shared.mk

# install snooty frontend and docs-tools
RUN git clone -b v${SNOOTY_FRONTEND_VERSION} --depth 1 https://github.com/mongodb/snooty.git \
&& cd snooty \
&& npm ci --legacy-peer-deps --omit=dev \
&& git clone --depth 1 https://github.com/mongodb/docs-tools.git \
&& mkdir -p ./static/images \
&& mv ./docs-tools/themes/mongodb/static ./static/docs-tools \
&& mv ./docs-tools/themes/guides/static/images/bg-accent.svg ./static/docs-tools/images/bg-accent.svg
&& npm ci --legacy-peer-deps --omit=dev

RUN curl https://raw.githubusercontent.com/mongodb/docs-worker-pool/meta/makefiles/shared.mk -o shared.mk


# install redoc fork
RUN git clone -b @dop/redoc-cli@${REDOC_CLI_VERSION} --depth 1 https://github.com/mongodb-forks/redoc.git redoc \
# Install dependencies for Redoc CLI
&& cd redoc/ \
&& npm ci --prefix cli/ --omit=dev

COPY --from=ts-compiler --chown=docsworker-xlarge /home/docsworker-xlarge/package*.json ./
COPY --from=ts-compiler --chown=docsworker-xlarge /home/docsworker-xlarge/config config/
COPY --from=ts-compiler --chown=docsworker-xlarge /home/docsworker-xlarge/build ./
RUN npm install
FROM initial as persistence

# Persistence module copy
# Create directory and add permissions to allow node module installation
RUN mkdir -p modules/persistence && chmod 755 modules/persistence
COPY --from=ts-compiler --chown=docsworker-xlarge /home/docsworker-xlarge/modules/persistence/package*.json ./modules/persistence/
COPY --from=ts-compiler --chown=docsworker-xlarge /home/docsworker-xlarge/modules/persistence/dist ./modules/persistence/
ENV PERSISTENCE_MODULE_PATH=${WORK_DIRECTORY}/modules/persistence/index.js
RUN cd ./modules/persistence/ && ls && npm ci --legacy-peer-deps
COPY modules/persistence/package*.json ./modules/persistence/
RUN cd ./modules/persistence \
&& npm ci --legacy-peer-deps
# Build persistence module

# OAS Page Builder module copy
# Create directory and add permissions to allow node module installation
RUN mkdir -p modules/oas-page-builder && chmod 755 modules/oas-page-builder
COPY --from=ts-compiler --chown=docsworker-xlarge /home/docsworker-xlarge/modules/oas-page-builder/package*.json ./modules/oas-page-builder/
COPY --from=ts-compiler --chown=docsworker-xlarge /home/docsworker-xlarge/modules/oas-page-builder/dist ./modules/oas-page-builder/
RUN cd ./modules/oas-page-builder/ && npm ci --legacy-peer-deps
COPY --chown=docsworker-xlarge modules/persistence/tsconfig*.json ./modules/persistence
COPY --chown=docsworker-xlarge modules/persistence/src ./modules/persistence/src/
COPY --chown=docsworker-xlarge modules/persistence/index.ts ./modules/persistence

# Needed for OAS Page Builder module in shared.mk
ENV REDOC_PATH=${WORK_DIRECTORY}/redoc/cli/index.js
RUN cd ./modules/persistence \
&& npm run build:esbuild

FROM initial as oas

RUN mkdir -p modules/oas-page-builder && chmod 755 modules/oas-page-builder
COPY modules/oas-page-builder/package*.json ./modules/oas-page-builder/
RUN cd ./modules/oas-page-builder \
&& npm ci --legacy-peer-deps
# Build modules
# OAS Page Builder
COPY --chown=docsworker-xlarge modules/oas-page-builder/tsconfig*.json ./modules/oas-page-builder
COPY --chown=docsworker-xlarge modules/oas-page-builder/src ./modules/oas-page-builder/src/
COPY --chown=docsworker-xlarge modules/oas-page-builder/index.ts ./modules/oas-page-builder

RUN cd ./modules/oas-page-builder \
&& npm run build:esbuild

FROM initial as root

COPY --from=persistence --chown=docsworker-xlarge ${WORK_DIRECTORY}/modules/persistence/dist/ ./modules/persistence
COPY --from=oas --chown=docsworker-xlarge ${WORK_DIRECTORY}/modules/oas-page-builder/dist/ ./modules/oas-page-builder

# Root project build
COPY package*.json ./
RUN npm ci --legacy-peer-deps


COPY tsconfig*.json ./
COPY config config/
COPY api api/
COPY src src/

RUN npm run build:esbuild

ENV PERSISTENCE_MODULE_PATH=${WORK_DIRECTORY}/modules/persistence/index.js
ENV OAS_MODULE_PATH=${WORK_DIRECTORY}/modules/oas-page-builder/index.js
ENV REDOC_PATH=${WORK_DIRECTORY}/redoc/cli/index.js

RUN mkdir -p modules/persistence && chmod 755 modules/persistence
RUN mkdir repos && chmod 755 repos

EXPOSE 3000
CMD ["node", "app.js"]
7 changes: 3 additions & 4 deletions Dockerfile.local
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ ARG SNOOTY_PARSER_VERSION=0.15.2
ARG SNOOTY_FRONTEND_VERSION=0.15.7
ARG MUT_VERSION=0.10.7
ARG REDOC_CLI_VERSION=1.2.3
ARG NPM_BASE_64_AUTH
ARG NPM_EMAIL
ARG WORK_DIRECTORY=/home/docsworker-xlarge

Expand All @@ -21,7 +20,7 @@ RUN apt-get install --yes curl
RUN curl --location https://deb.nodesource.com/setup_18.x | bash -
RUN apt-get install --yes nodejs
RUN apt-get install --yes build-essential
RUN apt-get install --yes python3-pip libxml2-dev libxslt-dev python-dev pkg-config
RUN apt-get install --yes python3-pip libxml2-dev libxslt-dev python-dev pkg-config time


RUN python3 -m pip install poetry
Expand Down Expand Up @@ -61,7 +60,7 @@ RUN git clone -b @dop/redoc-cli@${REDOC_CLI_VERSION} --depth 1 https://github.co
# Install dependencies for Redoc CLI
&& cd redoc/ \
&& npm ci --prefix cli/ --omit=dev

FROM initial as persistence

RUN mkdir -p modules/persistence && chmod 755 modules/persistence
Expand Down Expand Up @@ -118,4 +117,4 @@ RUN mkdir repos && chmod 755 repos

EXPOSE 3000

CMD ["node", "--inspect-brk=0.0.0.0", "--enable-source-maps", "dist/entrypoints/onDemandApp.js"]
CMD ["node", "--inspect-brk=0.0.0.0", "--enable-source-maps", "onDemandApp.js"]
2 changes: 1 addition & 1 deletion api/controllers/v2/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ async function prepGithubPushPayload(
error: {},
result: null,
payload: {
jobType: 'githubPush',
jobType: 'productionDeploy',
source: 'github',
action: 'push',
repoName: githubEvent.repository.name,
Expand Down
Loading
Loading