diff --git a/.github/workflows/build-images.yml b/.github/workflows/build-images.yml index f92a9527..ab1886b2 100644 --- a/.github/workflows/build-images.yml +++ b/.github/workflows/build-images.yml @@ -123,8 +123,7 @@ jobs: matrix: runner_desc: - {runner: ubuntu-22.04, postgres_replicas: 1, keycloak_jdbc_protocol: "postgresql", keycloak_db_driver: org.postgresql.Driver, keycloak_db_host_template: "postgres", keycloak_db_jdbc_query: "", keycloak_db_port: "5432" } - #- {runner: aws-core-2-default, postgres_replicas: 0, keycloak_jdbc_protocol: "aws-wrapper:postgresql", keycloak_db_driver: software.amazon.jdbc.Driver, keycloak_db_host_template: "camunda-ci-eks-aurora-postgresql-{{ postgres_version }}.cluster-clnwzia8ptad.eu-central-1.rds.amazonaws.com", keycloak_db_jdbc_query: "?wrapperPlugins=iam&ssl=true&sslmode=require&sslrootcert=/certs/rds-ca-2019-root.pem", keycloak_db_port: "5432" } - - {runner: aws-core-2-default, postgres_replicas: 0, keycloak_jdbc_protocol: "aws-wrapper:postgresql", keycloak_db_driver: software.amazon.jdbc.Driver, keycloak_db_host_template: "camunda-ci-eks-aurora-postgresql-{{ postgres_version }}.cluster-clnwzia8ptad.eu-central-1.rds.amazonaws.com", keycloak_db_jdbc_query: "?wrapperPlugins=iam", keycloak_db_port: "5432" } + - {runner: aws-core-2-default, postgres_replicas: 0, keycloak_jdbc_protocol: "aws-wrapper:postgresql", keycloak_db_driver: software.amazon.jdbc.Driver, keycloak_db_host_template: "camunda-ci-eks-aurora-postgresql-{{ postgres_version }}.cluster-clnwzia8ptad.eu-central-1.rds.amazonaws.com", keycloak_db_jdbc_query: "?wrapperPlugins=iam&ssl=true&sslmode=require&sslrootcert=/certs/rds-ca-2019-root.pem", keycloak_db_port: "5432" } - {runner: aws-arm-core-2-default, postgres_replicas: 0, keycloak_jdbc_protocol: "aws-wrapper:postgresql", keycloak_db_driver: software.amazon.jdbc.Driver, keycloak_db_host_template: "camunda-ci-eks-aurora-postgresql-{{ postgres_version }}.cluster-clnwzia8ptad.eu-central-1.rds.amazonaws.com", keycloak_db_jdbc_query: "?wrapperPlugins=iam&ssl=true&sslmode=require&sslrootcert=/certs/rds-ca-2019-root.pem", keycloak_db_port: "5432" } # GCloud SQL is not tested yet as we don't have a dedicated db, fallback on integrated db - {runner: gcp-core-2-default, postgres_replicas: 1, keycloak_jdbc_protocol: "postgresql", keycloak_db_driver: org.postgresql.Driver, keycloak_db_host_template: "postgres", keycloak_db_jdbc_query: "", keycloak_db_port: "5432" } @@ -177,7 +176,8 @@ jobs: echo "postgres_user=${postgres_user}" echo "postgres_password=" >> "$GITHUB_ENV" - echo "compose_keycloak_volumes=./rds-ca-2019-root.pem:/certs/rds-ca-2019-root.pem" >> "$GITHUB_ENV" + echo "compose_keycloak_volume_1=./rds-ca-2019-root.pem:/certs/rds-ca-2019-root.pem" >> "$GITHUB_ENV" + echo "compose_keycloak_volume_2=$AWS_WEB_IDENTITY_TOKEN_FILE:$AWS_WEB_IDENTITY_TOKEN_FILE" >> "$GITHUB_ENV" : # export AWS variables echo "AWS_STS_REGIONAL_ENDPOINTS=$AWS_STS_REGIONAL_ENDPOINTS" >> "$GITHUB_ENV" @@ -273,8 +273,7 @@ jobs: POSTGRES_PASSWORD: "${{ env.postgres_password }}" KC_DB_USERNAME: "${{ env.postgres_user }}" - # TODO: better integrate password empty usecase - # KC_DB_PASSWORD: "${{ env.postgres_password }}" + KC_DB_PASSWORD: "${{ env.postgres_password }}" KC_DB_DRIVER: "${{ matrix.runner_desc.keycloak_db_driver }}" KC_DB_URL: "${{ env.test_db_url }}" @@ -283,7 +282,8 @@ jobs: COMPOSE_POSTGRES_IMAGE: "postgres:${{ matrix.postgres_version }}" COMPOSE_POSTGRES_DEPLOY_REPLICAS: "${{ matrix.runner_desc.postgres_replicas }}" COMPOSE_KEYCLOAK_DEPENDS_ON: "${{ env.compose_keycloak_depends_on }}" - COMPOSE_KEYCLOAK_VOLUMES: "${{ env.compose_keycloak_volumes || '/dev/null:/dummynull' }}" + COMPOSE_KEYCLOAK_VOLUME_1: "${{ env.compose_keycloak_volume_1 || '/dev/null:/dummynull' }}" + COMPOSE_KEYCLOAK_VOLUME_2: "${{ env.compose_keycloak_volume_2 || '/dev/null:/dummynull' }}" # TODO: reverse # COMPOSE_KEYCLOAK_IMAGE: ${{ needs.build-image.outputs.full_image_name }} COMPOSE_KEYCLOAK_IMAGE: "registry.camunda.cloud/team-infrastructure-experience/keycloak@sha256:766f627ae1ef0aa16ca9af26989434e9c4f8684e9699b43c55afc0a877193d76" diff --git a/docker-compose.yml b/docker-compose.yml index c175c1fc..0438b418 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -53,7 +53,8 @@ services: depends_on: - "${COMPOSE_KEYCLOAK_DEPENDS_ON:-postgres}" volumes: - - "${COMPOSE_KEYCLOAK_VOLUMES:-'/dev/null:/mynull'}" + - "${COMPOSE_KEYCLOAK_VOLUMES_1:-'/dev/null:/mynull'}" + - "${COMPOSE_KEYCLOAK_VOLUMES_2:-'/dev/null:/mynull'}" # /kcadm.sh get clients --realm master --server http://localhost:8080 --user admin --password admin