Skip to content

Commit

Permalink
[TM-1519] Enable a pattern to control which services are deployed in …
Browse files Browse the repository at this point in the history
…which envs.
  • Loading branch information
roguenet committed Dec 2, 2024
1 parent a842f21 commit 57cbedc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/deploy-services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,31 @@ permissions:
id-token: write
contents: read

env:
JOB_SERVICE_ENABLED: ${{ vars.ENABLED_SERVICES == '' || contains(vars.ENABLED_SERVICES, 'job-service') }}
USER_SERVICE_ENABLED: ${{ vars.ENABLED_SERVICES == '' || contains(vars.ENABLED_SERVICES, 'user-service') }}
RESEARCH_SERVICE_ENABLED: ${{ vars.ENABLED_SERVICES == '' || contains(vars.ENABLED_SERVICES, 'research-service') }}

jobs:
job-service:
if: env.JOB_SERVICE_ENABLED
uses: ./.github/workflows/deploy-service.yml
with:
env: ${{ inputs.env }}
service: job-service
secrets: inherit


user-service:
if: env.USER_SERVICE_ENABLED
uses: ./.github/workflows/deploy-service.yml
with:
env: ${{ inputs.env }}
service: user-service
secrets: inherit

research-service:
if: env.RESEARCH_SERVICE_ENABLED
uses: ./.github/workflows/deploy-service.yml
with:
env: ${{ inputs.env }}
Expand Down

0 comments on commit 57cbedc

Please sign in to comment.