Skip to content

Commit

Permalink
merge suggestion worker squash commit
Browse files Browse the repository at this point in the history
  • Loading branch information
epipav committed Jan 3, 2024
1 parent 3120644 commit 43864cf
Show file tree
Hide file tree
Showing 41 changed files with 1,751 additions and 20 deletions.
129 changes: 129 additions & 0 deletions .github/workflows/lf-production-deploy-new.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,18 @@ on:
description: Deploy emails-worker service?
required: true
type: boolean
deploy_members_enrichment_worker:
description: Deploy members-enrichment-worker service?
required: true
type: boolean
deploy_merge_suggestions_worker:
description: Deploy merge-suggestions-worker service?
required: true
type: boolean
deploy_entity_merging_worker:
description: Deploy entity-merging-worker service?
required: true
type: boolean
deploy_script_executor:
description: Deploy script-executor service?
required: true
Expand Down Expand Up @@ -170,6 +182,69 @@ jobs:
id: image
run: echo "IMAGE=${{ steps.image-builder.outputs.image }}" >> $GITHUB_OUTPUT

build-and-push-members-enrichment-worker:
runs-on: ubuntu-latest
if: ${{ inputs.deploy_members_enrichment_worker }}
outputs:
image: ${{ steps.image.outputs.IMAGE }}
defaults:
run:
shell: bash
steps:
- name: Check out repository code
uses: actions/checkout@v2

- uses: ./.github/actions/build-docker-image
id: image-builder
with:
image: members-enrichment-worker

- name: Set docker image output
id: image
run: echo "IMAGE=${{ steps.image-builder.outputs.image }}" >> $GITHUB_OUTPUT

build-and-push-merge-suggestions-worker:
runs-on: ubuntu-latest
if: ${{ inputs.deploy_merge_suggestions_worker }}
outputs:
image: ${{ steps.image.outputs.IMAGE }}
defaults:
run:
shell: bash
steps:
- name: Check out repository code
uses: actions/checkout@v2

- uses: ./.github/actions/build-docker-image
id: image-builder
with:
image: merge-suggestions-worker

- name: Set docker image output
id: image
run: echo "IMAGE=${{ steps.image-builder.outputs.image }}" >> $GITHUB_OUTPUT

build-and-push-entity-merging-worker:
runs-on: ubuntu-latest
if: ${{ inputs.deploy_entity_merging_worker }}
outputs:
image: ${{ steps.image.outputs.IMAGE }}
defaults:
run:
shell: bash
steps:
- name: Check out repository code
uses: actions/checkout@v2

- uses: ./.github/actions/build-docker-image
id: image-builder
with:
image: entity-merging-worker

- name: Set docker image output
id: image
run: echo "IMAGE=${{ steps.image-builder.outputs.image }}" >> $GITHUB_OUTPUT

build-and-push-script-executor:
runs-on: ubuntu-latest
if: ${{ inputs.deploy_script_executor }}
Expand Down Expand Up @@ -303,6 +378,60 @@ jobs:
image: ${{ needs.build-and-push-emails-worker.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}

deploy-members-enrichment-worker:
needs: build-and-push-members-enrichment-worker
runs-on: ubuntu-latest
if: ${{ inputs.deploy_members_enrichment_worker }}
defaults:
run:
shell: bash

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

- uses: ./.github/actions/deploy-service
with:
service: members-enrichment-worker
image: ${{ needs.build-and-push-members-enrichment-worker.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}

deploy-merge-suggestions-worker:
needs: build-and-push-merge-suggestions-worker
runs-on: ubuntu-latest
if: ${{ inputs.deploy_merge_suggestions_worker }}
defaults:
run:
shell: bash

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

- uses: ./.github/actions/deploy-service
with:
service: merge-suggestions-worker
image: ${{ needs.build-and-push-merge-suggestions-worker.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}

deploy-entity-merging-worker:
needs: build-and-push-entity-merging-worker
runs-on: ubuntu-latest
if: ${{ inputs.deploy_entity_merging_worker }}
defaults:
run:
shell: bash

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

- uses: ./.github/actions/deploy-service
with:
service: entity-merging-worker
image: ${{ needs.build-and-push-entity-merging-worker.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}

deploy-script-executor:
needs: build-and-push-script-executor
runs-on: ubuntu-latest
Expand Down
60 changes: 60 additions & 0 deletions .github/workflows/lf-staging-deploy-merge-suggestions-worker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: LF Staging Deploy Merge Suggestions Worker

on:
push:
branches:
- "lf-staging/**"
- "lf-staging-**"
paths:
- "services/libs/**"
- "services/apps/merge_suggestions_worker/**"

env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
CROWD_CLUSTER: ${{ secrets.LF_STAGING_CLUSTER_NAME }}
CROWD_ROLE_ARN: ${{ secrets.LF_STAGING_CLUSTER_ROLE_ARN }}
AWS_ACCESS_KEY_ID: ${{ secrets.LF_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.LF_AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.LF_AWS_REGION }}
SLACK_CHANNEL: deploys-lf-staging
SLACK_WEBHOOK: ${{ secrets.LF_STAGING_SLACK_CHANNEL_HOOK }}

jobs:
build-and-push:
runs-on: ubuntu-latest
outputs:
image: ${{ steps.image.outputs.IMAGE }}
defaults:
run:
shell: bash

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

- uses: ./.github/actions/build-docker-image
id: image-builder
with:
image: merge-suggestions-worker

- name: Set docker image output
id: image
run: echo "IMAGE=${{ steps.image-builder.outputs.image }}" >> $GITHUB_OUTPUT

deploy-merge-suggestions-worker:
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: merge-suggestions-worker
image: ${{ needs.build-and-push.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}
129 changes: 129 additions & 0 deletions .github/workflows/production-deploy-new.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,18 @@ on:
description: Deploy emails-worker service?
required: true
type: boolean
deploy_members_enrichment_worker:
description: Deploy members-enrichment-worker service?
required: true
type: boolean
deploy_merge_suggestions_worker:
description: Deploy members-enrichment-worker service?
required: true
type: boolean
deploy_entity_merging_worker:
description: Deploy entity-merging-worker service?
required: true
type: boolean
deploy_script_executor:
description: Deploy script-executor service?
required: true
Expand Down Expand Up @@ -170,6 +182,69 @@ jobs:
id: image
run: echo "IMAGE=${{ steps.image-builder.outputs.image }}" >> $GITHUB_OUTPUT

build-and-push-members-enrichment-worker:
runs-on: ubuntu-latest
if: ${{ inputs.deploy_members_enrichment_worker }}
outputs:
image: ${{ steps.image.outputs.IMAGE }}
defaults:
run:
shell: bash
steps:
- name: Check out repository code
uses: actions/checkout@v2

- uses: ./.github/actions/build-docker-image
id: image-builder
with:
image: members-enrichment-worker

- name: Set docker image output
id: image
run: echo "IMAGE=${{ steps.image-builder.outputs.image }}" >> $GITHUB_OUTPUT

build-and-push-merge-suggestions-worker:
runs-on: ubuntu-latest
if: ${{ inputs.deploy_merge_suggestions_worker }}
outputs:
image: ${{ steps.image.outputs.IMAGE }}
defaults:
run:
shell: bash
steps:
- name: Check out repository code
uses: actions/checkout@v2

- uses: ./.github/actions/build-docker-image
id: image-builder
with:
image: merge-suggestions-worker

- name: Set docker image output
id: image
run: echo "IMAGE=${{ steps.image-builder.outputs.image }}" >> $GITHUB_OUTPUT

build-and-push-entity-merging-worker:
runs-on: ubuntu-latest
if: ${{ inputs.deploy_entity_merging_worker }}
outputs:
image: ${{ steps.image.outputs.IMAGE }}
defaults:
run:
shell: bash
steps:
- name: Check out repository code
uses: actions/checkout@v2

- uses: ./.github/actions/build-docker-image
id: image-builder
with:
image: entity-merging-worker

- name: Set docker image output
id: image
run: echo "IMAGE=${{ steps.image-builder.outputs.image }}" >> $GITHUB_OUTPUT

build-and-push-script-executor:
runs-on: ubuntu-latest
if: ${{ inputs.deploy_script_executor }}
Expand Down Expand Up @@ -301,6 +376,60 @@ jobs:
image: ${{ needs.build-and-push-emails-worker.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}

deploy-members-enrichment-worker:
needs: build-and-push-members-enrichment-worker
runs-on: ubuntu-latest
if: ${{ inputs.deploy_members_enrichment_worker }}
defaults:
run:
shell: bash

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

- uses: ./.github/actions/deploy-service
with:
service: members-enrichment-worker
image: ${{ needs.build-and-push-members-enrichment-worker.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}

deploy-merge-suggestions-worker:
needs: build-and-push-merge-suggestions-worker
runs-on: ubuntu-latest
if: ${{ inputs.deploy_merge_suggestions_worker }}
defaults:
run:
shell: bash

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

- uses: ./.github/actions/deploy-service
with:
service: merge-suggestions-worker
image: ${{ needs.build-and-push-merge-suggestions-worker.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}

deploy-entity-merging-worker:
needs: build-and-push-entity-merging-worker
runs-on: ubuntu-latest
if: ${{ inputs.deploy_entity_merging_worker }}
defaults:
run:
shell: bash

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

- uses: ./.github/actions/deploy-service
with:
service: entity-merging-worker
image: ${{ needs.build-and-push-entity-merging-worker.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}

deploy-script-executor:
needs: build-and-push-script-executor
runs-on: ubuntu-latest
Expand Down
Loading

0 comments on commit 43864cf

Please sign in to comment.