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 95681d8
Showing 1 changed file with 34 additions and 21 deletions.
55 changes: 34 additions & 21 deletions .github/workflows/deploy-services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,38 @@ permissions:
contents: read

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

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

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

test:
runs-on: ubuntu-latest
steps:
- run: |
echo "services: $ENABLED_SERVICES"
env:
ENABLED_SERVICES: vars.ENABLED_SERVICES
#jobs:
# job-service:
# if: ${{ vars.ENABLED_SERVICES == '' || contains(vars.ENABLED_SERVICES, 'job-service') }}
# uses: ./.github/workflows/deploy-service.yml
# with:
# env: ${{ inputs.env }}
# service: job-service
# secrets: inherit
#
#
# user-service:
# if: ${{ vars.ENABLED_SERVICES == '' || contains(vars.ENABLED_SERVICES, 'user-service') }}
# uses: ./.github/workflows/deploy-service.yml
# with:
# env: ${{ inputs.env }}
# service: user-service
# secrets: inherit
#
# research-service:
# if: ${{ vars.ENABLED_SERVICES == '' || contains(env.ENABLED_SERVICES, 'research-service') }}
# uses: ./.github/workflows/deploy-service.yml
# with:
# env: ${{ inputs.env }}
# service: research-service
# secrets: inherit
#
#

0 comments on commit 95681d8

Please sign in to comment.