Skip to content

Commit

Permalink
fix depends on
Browse files Browse the repository at this point in the history
  • Loading branch information
leiicamundi committed Feb 29, 2024
1 parent 14f557d commit 2e88732
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/build-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,13 @@ jobs:
- name: Declare test recipe variables
shell: bash
run: |
if [ ${{ matrix.runner_desc.postgres_replicas }} -lt 1 ]; then
echo "compose_keycloak_depends_on=" >> $GITHUB_ENV
else
echo "compose_keycloak_depends_on=postgres" >> $GITHUB_ENV
fi
# ensure uniqueness of the db name
postgres_database="db-${{ matrix.runner_desc.runner }}-${{ github.sha }}"
echo "postgres_database=${postgres_database}" >> $GITHUB_ENV
Expand Down Expand Up @@ -247,7 +254,7 @@ jobs:

COMPOSE_POSTGRES_IMAGE: "postgres:${{ matrix.postgres_version }}"
COMPOSE_POSTGRES_DEPLOY_REPLICAS: "${{ matrix.runner_desc.postgres_replicas }}"
COMPOSE_KEYCLOAK_DEPENDS_ON: "${{ '' if matrix.runner_desc.postgres_replicas < 1 else 'postgres' }}"
COMPOSE_KEYCLOAK_DEPENDS_ON: "${{ env.compose_keycloak_depends_on }}"
COMPOSE_KEYCLOAK_IMAGE: ${{ needs.build-image.outputs.full_image_name }}

# AWS specific variables to forward, see https://confluence.camunda.com/pages/viewpage.action?pageId=178590693#IAMRolesforServiceAccountsTesting(IRSA)-EnvironmentVariables
Expand Down

0 comments on commit 2e88732

Please sign in to comment.