Skip to content

Services Deploy (all) [env: staging] #29

Services Deploy (all) [env: staging]

Services Deploy (all) [env: staging] #29

Workflow file for this run

name: Services Deploy (all)
run-name: 'Services Deploy (all) [env: ${{ inputs.env }}]'
on:
workflow_dispatch:
inputs:
env:
description: 'Deployment target environment'
type: choice
required: true
options:
- dev
- test
- staging
- prod
permissions:
id-token: write
contents: read
jobs:
check-services:
runs-on: ubuntu-latest
environment: ${{ inputs.env }}
outputs:
research-service-enabled: ${{ vars.ENABLED_SERVICES == '' || contains(vars.ENABLED_SERVICES, 'research-service') }}
steps:
- run: |
echo "Enabled services: all"
if: vars.ENABLED_SERVICES == ''
- run: |
echo "Enabled services: ${{vars.ENABLED_SERVICES}}"
if: vars.ENABLED_SERVICES != ''
test1:
needs: check-services
runs-on: ubuntu-latest
if: needs.check-services.outputs.reseach-service-enabled == 'true'
steps:
- run: |
echo "research service enabled: ${{ needs.check-services.outputs.research-service-enabled }}"
test2:
needs: check-services
runs-on: ubuntu-latest
if: needs.check-services.outputs.research-service-enabled == 'false'
steps:
- run: |
echo "research service not enabled: ${{ needs.check-services.outputs.research-service-enabled }}"
#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
#
#