diff --git a/.github/workflows/deploy-services.yml b/.github/workflows/deploy-services.yml index 5844f4d..39cce79 100644 --- a/.github/workflows/deploy-services.yml +++ b/.github/workflows/deploy-services.yml @@ -18,15 +18,23 @@ 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 }} @@ -34,6 +42,7 @@ jobs: secrets: inherit research-service: + if: env.RESEARCH_SERVICE_ENABLED uses: ./.github/workflows/deploy-service.yml with: env: ${{ inputs.env }}