Skip to content

Commit

Permalink
Merge branch 'main' into bugfix/queue-deduplication-id-test
Browse files Browse the repository at this point in the history
  • Loading branch information
Uroš Marolt committed Sep 19, 2023
2 parents 1082700 + 8ce1b35 commit f730ad5
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 26 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/build-script-executor.yaml

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflows/lf-production-deploy-new.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ on:
description: Deploy webhook-api service?
required: true
type: boolean
deploy_script_executor:
description: Deploy script-executor service?
required: true
type: boolean

env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
Expand Down Expand Up @@ -91,6 +95,27 @@ jobs:
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 }}
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: script-executor

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

deploy-search-sync-worker:
needs: build-and-push-search-sync-worker
runs-on: ubuntu-latest
Expand Down Expand Up @@ -144,3 +169,21 @@ jobs:
service: webhook-api
image: ${{ needs.build-and-push-webhook-api.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}

deploy-script-executor:
needs: build-and-push-script-executor
runs-on: ubuntu-latest
if: ${{ inputs.deploy_script_executor }}
defaults:
run:
shell: bash

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

- uses: ./.github/actions/deploy-service
with:
service: script-executor
image: ${{ needs.build-and-push-script-executor.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}
43 changes: 43 additions & 0 deletions .github/workflows/production-deploy-new.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ on:
description: Deploy webhook-api service?
required: true
type: boolean
deploy_script_executor:
description: Deploy script-executor service?
required: true
type: boolean

env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
Expand Down Expand Up @@ -91,6 +95,27 @@ jobs:
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 }}
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: script-executor

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

deploy-search-sync-worker:
needs: build-and-push-search-sync-worker
runs-on: ubuntu-latest
Expand Down Expand Up @@ -144,3 +169,21 @@ jobs:
service: webhook-api
image: ${{ needs.build-and-push-webhook-api.outputs.image }}
cluster: ${{ env.CROWD_CLUSTER }}

deploy-script-executor:
needs: build-and-push-script-executor
runs-on: ubuntu-latest
if: ${{ inputs.deploy_script_executor }}
defaults:
run:
shell: bash

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

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

0 comments on commit f730ad5

Please sign in to comment.