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: 11 additions & 11 deletions .github/actions/deploy-service/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,10 @@ inputs:
required: false
default: 'false'

staging:
description: Is the service prioritized and deployed to staging?
cloud_env:
description: Which cloud environment are we deploying to?
required: false
default: 'false'

lfx:
description: Is the service prioritized and deployed to lfx?
required: false
default: 'false'
default: 'default'

runs:
using: composite
Expand All @@ -46,7 +41,7 @@ runs:
run: kubectl set image deployments/${{ inputs.service }}-dpl ${{ inputs.service }}=${{ inputs.image }}

- name: Deploy image (prioritized - production)
if: inputs.prioritized == 'true' && inputs.lfx == 'false'
if: inputs.prioritized == 'true' && inputs.cloud_env == 'prod'
shell: bash
run: |
kubectl set image deployments/${{ inputs.service }}-system-dpl ${{ inputs.service }}-system=${{ inputs.image }}
Expand All @@ -55,15 +50,20 @@ runs:
kubectl set image deployments/${{ inputs.service }}-urgent-dpl ${{ inputs.service }}-urgent=${{ inputs.image }}

- name: Deploy image (prioritized - lfx production)
if: inputs.prioritized == 'true' && inputs.lfx == 'true'
if: inputs.prioritized == 'true' && inputs.cloud_env == 'lfx_prod'
shell: bash
run: |
kubectl set image deployments/${{ inputs.service }}-system-dpl ${{ inputs.service }}-system=${{ inputs.image }}
kubectl set image deployments/${{ inputs.service }}-normal-dpl ${{ inputs.service }}-normal=${{ inputs.image }}
kubectl set image deployments/${{ inputs.service }}-high-dpl ${{ inputs.service }}-high=${{ inputs.image }}

- name: Deploy image (prioritized - staging)
if: inputs.prioritized == 'true' && inputs.staging == 'true'
if: inputs.prioritized == 'true' && inputs.cloud_env == 'staging'
shell: bash
run: kubectl set image deployments/${{ inputs.service }}-normal-dpl ${{ inputs.service }}-normal=${{ inputs.image }}

- name: Deploy image (prioritized - lfx staging)
if: inputs.prioritized == 'true' && inputs.cloud_env == 'lfx_staging'
shell: bash
run: kubectl set image deployments/${{ inputs.service }}-normal-dpl ${{ inputs.service }}-normal=${{ inputs.image }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lf-production-deploy-new.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ jobs:
service: search-sync-worker
image: ${{ needs.build-and-push-search-sync-worker.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}
lfx: true
cloud_env: lfx_prod
prioritized: true

deploy-search-sync-api:
Expand Down Expand Up @@ -246,7 +246,7 @@ jobs:
service: integration-sync-worker
image: ${{ needs.build-and-push-integration-sync-worker.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}
lfx: true
cloud_env: lfx_prod
prioritized: true

deploy-webhook-api:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/lf-production-deploy-original.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ jobs:
service: nodejs-worker
image: ${{ needs.build-and-push-backend.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}
lfx: true
cloud_env: lfx_prod
prioritized: true

deploy-discord-ws:
Expand Down Expand Up @@ -293,7 +293,7 @@ jobs:
service: integration-run-worker
image: ${{ needs.build-and-push-integration-run-worker.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}
lfx: true
cloud_env: lfx_prod
prioritized: true

deploy-integration-stream-worker:
Expand All @@ -313,7 +313,7 @@ jobs:
service: integration-stream-worker
image: ${{ needs.build-and-push-integration-stream-worker.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}
lfx: true
cloud_env: lfx_prod
prioritized: true

deploy-integration-data-worker:
Expand All @@ -333,7 +333,7 @@ jobs:
service: integration-data-worker
image: ${{ needs.build-and-push-integration-data-worker.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}
lfx: true
cloud_env: lfx_prod
prioritized: true

deploy-data-sink-worker:
Expand All @@ -353,7 +353,7 @@ jobs:
service: data-sink-worker
image: ${{ needs.build-and-push-data-sink-worker.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}
lfx: true
cloud_env: lfx_prod
prioritized: true

deploy-frontend:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lf-staging-deploy-backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
service: nodejs-worker
image: ${{ needs.build-and-push.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}
staging: true
cloud_env: lfx_staging
prioritized: true

deploy-job-generator:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ jobs:
service: data-sink-worker
image: ${{ needs.build-and-push.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}
staging: true
cloud_env: lfx_staging
prioritized: true
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ jobs:
service: integration-data-worker
image: ${{ needs.build-and-push.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}
staging: true
cloud_env: lfx_staging
prioritized: true
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ jobs:
service: integration-run-worker
image: ${{ needs.build-and-push.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}
staging: true
cloud_env: lfx_staging
prioritized: true
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ jobs:
service: integration-stream-worker
image: ${{ needs.build-and-push.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}
staging: true
cloud_env: lfx_staging
prioritized: true
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ jobs:
service: search-sync-worker
image: ${{ needs.build-and-push.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}
staging: true
cloud_env: lfx_staging
prioritized: true
2 changes: 2 additions & 0 deletions .github/workflows/production-deploy-new.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ jobs:
service: search-sync-worker
image: ${{ needs.build-and-push-search-sync-worker.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}
cloud_env: prod
prioritized: true

deploy-search-sync-api:
Expand Down Expand Up @@ -245,6 +246,7 @@ jobs:
service: integration-sync-worker
image: ${{ needs.build-and-push-integration-sync-worker.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}
cloud_env: prod
prioritized: true

deploy-webhook-api:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/production-deploy-original.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ jobs:
service: nodejs-worker
image: ${{ needs.build-and-push-backend.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}
cloud_env: prod
prioritized: true

deploy-discord-ws:
Expand Down Expand Up @@ -292,6 +293,7 @@ jobs:
service: integration-run-worker
image: ${{ needs.build-and-push-integration-run-worker.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}
cloud_env: prod
prioritized: true

deploy-integration-stream-worker:
Expand All @@ -311,6 +313,7 @@ jobs:
service: integration-stream-worker
image: ${{ needs.build-and-push-integration-stream-worker.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}
cloud_env: prod
prioritized: true

deploy-integration-data-worker:
Expand All @@ -330,6 +333,7 @@ jobs:
service: integration-data-worker
image: ${{ needs.build-and-push-integration-data-worker.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}
cloud_env: prod
prioritized: true

deploy-data-sink-worker:
Expand All @@ -349,6 +353,7 @@ jobs:
service: data-sink-worker
image: ${{ needs.build-and-push-data-sink-worker.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}
cloud_env: prod
prioritized: true

deploy-frontend:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/staging-deploy-backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
image: ${{ needs.build-and-push.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}
prioritized: true
staging: true
cloud_env: staging

deploy-job-generator:
needs: build-and-push
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/staging-deploy-data-sink-worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ jobs:
service: data-sink-worker
image: ${{ needs.build-and-push.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}
staging: true
cloud_env: staging
prioritized: true
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ jobs:
service: integration-data-worker
image: ${{ needs.build-and-push.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}
staging: true
cloud_env: staging
prioritized: true
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ jobs:
service: integration-run-worker
image: ${{ needs.build-and-push.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}
staging: true
cloud_env: staging
prioritized: true
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ jobs:
service: integration-stream-worker
image: ${{ needs.build-and-push.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}
staging: true
cloud_env: staging
prioritized: true
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ jobs:
service: integration-sync-worker
image: ${{ needs.build-and-push.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}
staging: true
cloud_env: staging
prioritized: true
2 changes: 1 addition & 1 deletion .github/workflows/staging-deploy-search-sync-worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ jobs:
service: search-sync-worker
image: ${{ needs.build-and-push.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}
staging: true
cloud_env: staging
prioritized: true