Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
22 changes: 22 additions & 0 deletions .github/workflows/production-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ on:
description: Deploy nodejs-worker service?
required: true
type: boolean
deploy_discord_ws:
description: Deploy discord-ws service?
required: true
type: boolean
deploy_python_worker:
description: Deploy python-worker service?
required: true
Expand Down Expand Up @@ -187,6 +191,24 @@ jobs:
image: ${{ needs.build-and-push-backend.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}

deploy-discord-ws:
needs: build-and-push-backend
runs-on: ubuntu-latest
if: ${{ inputs.deploy_discord_ws }}
defaults:
run:
shell: bash

steps:
- name: Check out repository code
uses: actions/checkout@v2

- uses: ./.github/actions/deploy-service
with:
service: discord-ws
image: ${{ needs.build-and-push-backend.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}

deploy-job-generator:
needs: build-and-push-backend
runs-on: ubuntu-latest
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/staging-deploy-backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,20 @@ jobs:
service: job-generator
image: ${{ needs.build-and-push.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}

deploy-discord-ws:
needs: build-and-push
runs-on: ubuntu-latest
defaults:
run:
shell: bash

steps:
- name: Check out repository code
uses: actions/checkout@v2

- uses: ./.github/actions/deploy-service
with:
service: discord-ws
image: ${{ needs.build-and-push.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}
11 changes: 9 additions & 2 deletions backend/Dockerfile.kube
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
# syntax = docker/dockerfile:experimental
FROM node:16-alpine
FROM node:16-alpine as builder

ENV PYTHONUNBUFFERED=1
RUN apk add --update --no-cache python3 build-base && ln -sf python3 /usr/bin/python
RUN python3 -m ensurepip
RUN pip3 install --no-cache --upgrade pip setuptools

WORKDIR /usr/crowd/backend
COPY package-lock.json package.json ./

RUN npm install

FROM node:16-alpine

COPY --from=builder /usr/crowd/backend/node_modules ./node_modules
COPY . .
Loading